2026821
This commit is contained in:
+218
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MODEL.ModelBase;
|
||||
using GThinking.N_MISPROAS.Web.AjaxServices;
|
||||
using GThinking.N_MISPROAS;
|
||||
using GThinking.N_MISPROAS.Services;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_WORKFLOW;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class FWMXX
|
||||
{
|
||||
private string _BJDID; // 报价单号
|
||||
private string _SQR; // 申请人
|
||||
private string _BJRQ; // 报价日期
|
||||
private bool _Success; // 解析是否成功
|
||||
|
||||
public string BJDID
|
||||
{
|
||||
get { return _BJDID; }
|
||||
set { _BJDID = value; }
|
||||
}
|
||||
|
||||
public string SQR
|
||||
{
|
||||
get { return _SQR; }
|
||||
set { _SQR = value; }
|
||||
}
|
||||
|
||||
public string BJRQ
|
||||
{
|
||||
get { return _BJRQ; }
|
||||
set { _BJRQ = value; }
|
||||
}
|
||||
|
||||
public bool Success
|
||||
{
|
||||
get { return _Success; }
|
||||
set { _Success = value; }
|
||||
}
|
||||
}
|
||||
|
||||
public class FWMYZInfo : ModelBase
|
||||
{
|
||||
private string _BJDID; // 报价单号
|
||||
private string _SQR; // 申请人
|
||||
private string _BJRQ; // 报价日期
|
||||
private WorkFlowRights _WFRights = new WorkFlowRights();
|
||||
private StateResult _StateResult = new StateResult();
|
||||
|
||||
public string BJDID
|
||||
{
|
||||
get { return _BJDID; }
|
||||
set { _BJDID = value; }
|
||||
}
|
||||
|
||||
public string SQR
|
||||
{
|
||||
get { return _SQR; }
|
||||
set { _SQR = value; }
|
||||
}
|
||||
|
||||
public string BJRQ
|
||||
{
|
||||
get { return _BJRQ; }
|
||||
set { _BJRQ = value; }
|
||||
}
|
||||
|
||||
public WorkFlowRights WFRights
|
||||
{
|
||||
get { return _WFRights; }
|
||||
set { _WFRights = value; }
|
||||
}
|
||||
|
||||
public StateResult StateMessage
|
||||
{
|
||||
get { return _StateResult; }
|
||||
set { _StateResult = value; }
|
||||
}
|
||||
|
||||
public string key()
|
||||
{
|
||||
return "FWMYZ";
|
||||
}
|
||||
}
|
||||
|
||||
public class FWMSMService : ServiceBase
|
||||
{
|
||||
[AjaxMethod()]
|
||||
public static FWMXX FWMJM(string sFWMJM)
|
||||
{
|
||||
FWMXX result = new FWMXX();
|
||||
result.Success = false;
|
||||
result.BJDID = "";
|
||||
result.SQR = "";
|
||||
result.BJRQ = "";
|
||||
|
||||
try
|
||||
{
|
||||
string encodedData = "";
|
||||
if (sFWMJM.Contains("?data="))
|
||||
{
|
||||
int index = sFWMJM.IndexOf("?data=");
|
||||
encodedData = sFWMJM.Substring(index + 6);
|
||||
}
|
||||
else if (sFWMJM.Contains("data="))
|
||||
{
|
||||
int index = sFWMJM.IndexOf("data=");
|
||||
encodedData = sFWMJM.Substring(index + 5);
|
||||
}
|
||||
else
|
||||
{
|
||||
encodedData = sFWMJM;
|
||||
}
|
||||
|
||||
string encryptedString = System.Web.HttpUtility.UrlDecode(encodedData);
|
||||
|
||||
string decryptedString = GThinking.N_MODEL.Dialog.AttachDocDlg.DecryptString(encryptedString, "GTHINKING");
|
||||
|
||||
string[] dataItems = decryptedString.Split(',');
|
||||
|
||||
if (dataItems.Length >= 1)
|
||||
{
|
||||
result.BJDID = dataItems[0];
|
||||
}
|
||||
if (dataItems.Length >= 2)
|
||||
{
|
||||
result.SQR = dataItems[1];
|
||||
}
|
||||
if (dataItems.Length >= 3)
|
||||
{
|
||||
result.BJRQ = dataItems[2];
|
||||
}
|
||||
|
||||
result.Success = true;
|
||||
|
||||
_cachedBJDID = result.BJDID;
|
||||
_cachedSQR = result.SQR;
|
||||
_cachedBJRQ = result.BJRQ;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_cachedBJDID = "";
|
||||
_cachedSQR = "";
|
||||
_cachedBJRQ = "";
|
||||
result.Success = false;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
[AjaxMethod()]
|
||||
public static FWMYZInfo GetInfobyKey(string Key)
|
||||
{
|
||||
FWMYZInfo info = new FWMYZInfo();
|
||||
info.BJDID = "";
|
||||
info.SQR = "";
|
||||
info.BJRQ = "";
|
||||
info.WFRights = new WorkFlowRights();
|
||||
info.WFRights.CanEdit = false;
|
||||
info.WFRights.CanDelete = false;
|
||||
info.WFRights.CanSubmit = false;
|
||||
info.WFRights.CanTrace = false;
|
||||
info.StateMessage = new StateResult();
|
||||
info.StateMessage.State = 0;
|
||||
info.StateMessage.Message = "";
|
||||
return info;
|
||||
}
|
||||
|
||||
private static string _cachedBJDID = "";
|
||||
private static string _cachedSQR = "";
|
||||
private static string _cachedBJRQ = "";
|
||||
|
||||
[AjaxMethod()]
|
||||
public static InfoList<FWMYZInfo> GetFWMYZList(string Key)
|
||||
{
|
||||
InfoList<FWMYZInfo> rEntity = new InfoList<FWMYZInfo>();
|
||||
rEntity.TotalInfos = 1;
|
||||
rEntity.CanInsert = false;
|
||||
|
||||
FWMYZInfo info = new FWMYZInfo();
|
||||
info.BJDID = _cachedBJDID;
|
||||
info.SQR = _cachedSQR;
|
||||
info.BJRQ = _cachedBJRQ;
|
||||
info.WFRights = new WorkFlowRights();
|
||||
info.WFRights.CanEdit = false;
|
||||
info.WFRights.CanDelete = false;
|
||||
info.WFRights.CanSubmit = false;
|
||||
info.WFRights.CanTrace = false;
|
||||
info.StateMessage = new StateResult();
|
||||
info.StateMessage.State = 0;
|
||||
info.StateMessage.Message = "";
|
||||
|
||||
rEntity.Infos.Add(info);
|
||||
return rEntity;
|
||||
}
|
||||
|
||||
[AjaxMethod()]
|
||||
public static void ClearFWMYZCache()
|
||||
{
|
||||
_cachedBJDID = "";
|
||||
_cachedSQR = "";
|
||||
_cachedBJRQ = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user