SVN r1028
SVN-Revision: r1028
This commit is contained in:
@@ -1,33 +1,28 @@
|
|||||||
using System;
|
using Lskj.Business;
|
||||||
using System.Collections.Generic;
|
using Lskj.Business.Impl;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using System.IO;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Net;
|
|
||||||
using Lskj.Control;
|
using Lskj.Control;
|
||||||
using System.Threading.Tasks;
|
using Lskj.Control.BrowserSetting;
|
||||||
|
using Lskj.Control.Model;
|
||||||
using Lskj.Core;
|
using Lskj.Core;
|
||||||
using DevExpress.XtraGrid.Columns;
|
using Lskj.Model;
|
||||||
|
using Lskj.Util;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using NPOI.HSSF.UserModel;
|
||||||
using NPOI.SS.UserModel;
|
using NPOI.SS.UserModel;
|
||||||
using NPOI.SS.Util;
|
using NPOI.SS.Util;
|
||||||
using NPOI.XSSF.UserModel;
|
using NPOI.XSSF.UserModel;
|
||||||
using NPOI.HSSF.UserModel;
|
using System;
|
||||||
using Lskj.Model;
|
using System.Collections.Generic;
|
||||||
using Lskj.Control.BrowserSetting;
|
using System.Data;
|
||||||
using Lskj.Business;
|
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using Lskj.Business.Impl;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using Lskj.Util;
|
|
||||||
using System.Web;
|
|
||||||
using Lskj.Control.Model;
|
|
||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Lskj.PubBomImport
|
namespace Lskj.PubBomImport
|
||||||
{
|
{
|
||||||
@@ -3942,8 +3937,8 @@ namespace Lskj.PubBomImport
|
|||||||
HttpTools.setting("application/x-www-form-urlencoded", null, null, HttpTools.Encode.UTF8);
|
HttpTools.setting("application/x-www-form-urlencoded", null, null, HttpTools.Encode.UTF8);
|
||||||
Dictionary<string, string> loginPmsDic = new Dictionary<string, string>();
|
Dictionary<string, string> loginPmsDic = new Dictionary<string, string>();
|
||||||
loginPmsDic.Add("method", "Login");
|
loginPmsDic.Add("method", "Login");
|
||||||
loginPmsDic.Add("username", HttpUtility.UrlEncode(ERPInfo.Instance.UserName));
|
loginPmsDic.Add("username", System.Web.HttpUtility.UrlEncode(ERPInfo.Instance.UserName));
|
||||||
loginPmsDic.Add("password", HttpUtility.UrlEncode(ERPInfo.Instance.InPassWord));
|
loginPmsDic.Add("password", System.Web.HttpUtility.UrlEncode(ERPInfo.Instance.InPassWord));
|
||||||
HttpWebResponse loginResponse = HttpTools.Post(loginUrl, "", loginPmsDic, HttpTools.Method.POST, out CookieCollection loginCookie, out string loginResult);
|
HttpWebResponse loginResponse = HttpTools.Post(loginUrl, "", loginPmsDic, HttpTools.Method.POST, out CookieCollection loginCookie, out string loginResult);
|
||||||
if (loginResponse != null && !string.IsNullOrEmpty(loginResult))
|
if (loginResponse != null && !string.IsNullOrEmpty(loginResult))
|
||||||
{
|
{
|
||||||
@@ -3978,7 +3973,7 @@ namespace Lskj.PubBomImport
|
|||||||
// HttpWebResponse deleteWebResponse = HttpHelper.Post(deleteUrl, fileStream, null, deleteHeaderDic, out string deleteResult);
|
// HttpWebResponse deleteWebResponse = HttpHelper.Post(deleteUrl, fileStream, null, deleteHeaderDic, out string deleteResult);
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, "1000202", HttpUtility.UrlEncode(idValue), "file", fileBytes.Length, 0, HttpUtility.UrlEncode(name), "DoWebUpload", speciesno);
|
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, "1000202", System.Web.HttpUtility.UrlEncode(idValue), "file", fileBytes.Length, 0, System.Web.HttpUtility.UrlEncode(name), "DoWebUpload", speciesno);
|
||||||
HttpTools.setting("application/x-www-form-urlencoded", null, null);
|
HttpTools.setting("application/x-www-form-urlencoded", null, null);
|
||||||
string result = "";
|
string result = "";
|
||||||
CookieCollection cookieCollection = null;
|
CookieCollection cookieCollection = null;
|
||||||
@@ -4068,8 +4063,8 @@ namespace Lskj.PubBomImport
|
|||||||
HttpTools.setting("application/x-www-form-urlencoded", null, null, HttpTools.Encode.UTF8);
|
HttpTools.setting("application/x-www-form-urlencoded", null, null, HttpTools.Encode.UTF8);
|
||||||
Dictionary<string, string> loginPmsDic = new Dictionary<string, string>();
|
Dictionary<string, string> loginPmsDic = new Dictionary<string, string>();
|
||||||
loginPmsDic.Add("method", "Login");
|
loginPmsDic.Add("method", "Login");
|
||||||
loginPmsDic.Add("username", HttpUtility.UrlEncode(ERPInfo.Instance.UserName));
|
loginPmsDic.Add("username", System.Web.HttpUtility.UrlEncode(ERPInfo.Instance.UserName));
|
||||||
loginPmsDic.Add("password", HttpUtility.UrlEncode(ERPInfo.Instance.InPassWord));
|
loginPmsDic.Add("password", System.Web.HttpUtility.UrlEncode(ERPInfo.Instance.InPassWord));
|
||||||
HttpWebResponse loginResponse = HttpTools.Post(loginUrl, "", loginPmsDic, HttpTools.Method.POST, out CookieCollection loginCookie, out string loginResult);
|
HttpWebResponse loginResponse = HttpTools.Post(loginUrl, "", loginPmsDic, HttpTools.Method.POST, out CookieCollection loginCookie, out string loginResult);
|
||||||
if (loginResponse != null && !string.IsNullOrEmpty(loginResult))
|
if (loginResponse != null && !string.IsNullOrEmpty(loginResult))
|
||||||
{
|
{
|
||||||
@@ -4104,7 +4099,7 @@ namespace Lskj.PubBomImport
|
|||||||
// HttpWebResponse deleteWebResponse = HttpHelper.Post(deleteUrl, fileStream, null, deleteHeaderDic, out string deleteResult);
|
// HttpWebResponse deleteWebResponse = HttpHelper.Post(deleteUrl, fileStream, null, deleteHeaderDic, out string deleteResult);
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, "1000202", HttpUtility.UrlEncode(idValue), "file", fileBytes.Length, 0, HttpUtility.UrlEncode(name), "DoWebUpload", speciesno);
|
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, "1000202", System.Web.HttpUtility.UrlEncode(idValue), "file", fileBytes.Length, 0, System.Web.HttpUtility.UrlEncode(name), "DoWebUpload", speciesno);
|
||||||
HttpTools.setting("application/x-www-form-urlencoded", null, null);
|
HttpTools.setting("application/x-www-form-urlencoded", null, null);
|
||||||
string result = "";
|
string result = "";
|
||||||
CookieCollection cookieCollection = null;
|
CookieCollection cookieCollection = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user