public HCSSM_workspace_use() { InitializeComponent(); loadclass(); //HCS-pdbasepar-sec02:获取当前工作台下所有流程的参数 CnasRemotCall reCnasRemotCall = new CnasRemotCall(); dtpdpart = reCnasRemotCall.RemotInterface.SelectData("HCS-pdparameter-sec04", null); dtpartvalue = reCnasRemotCall.RemotInterface.SelectData("HCS-pdparametervalue-sec03", null); //HCS-apppd-sec001 SortedList sttemp02 = new SortedList(); sttemp02.Add(1, App_ID); dtapppd = reCnasRemotCall.RemotInterface.SelectData("HCS-apppd-sec002", sttemp02); if (dtapppd != null) { for (int i = 0; i < dtapppd.Rows.Count; i++) { App_pd = App_pd + ",'" + dtapppd.Rows[i]["pd_code"].ToString() + "'"; //App_pd = App_pd + "," + dtapppd.Rows[i]["pd_code"].ToString() ; sl_allpd.Add(dtapppd.Rows[i]["pd_code"].ToString(), dtapppd.Rows[i]["pd_name"].ToString()); } App_pd = App_pd.Substring(1); } load_workorder("0"); }
public HCSSM_workspace_decon(string inappid) { Logger = LogManager.GetLogger("CnasWNSClient"); App_ID = inappid; InitializeComponent(); Icon = new Icon(ResourcesImageHelper.GetResourcesStream("Common.icon", "MainIco", EnumImageType.ICO)); loadclass(); //HCS-pdbasepar-sec02:获取当前工作台下所有流程的参数 CnasRemotCall reCnasRemotCall = new CnasRemotCall(); SortedList temp05list = new SortedList(); temp05list.Add(1, CnasBaseData.SystemID); dtpdpart = reCnasRemotCall.RemotInterface.SelectData("HCS-pdparameter-sec05", temp05list); //dtpdpart = reCnasRemotCall.RemotInterface.SelectData("HCS-pdparameter-sec04", null); dtpartvalue = reCnasRemotCall.RemotInterface.SelectData("HCS-pdparametervalue-sec03", null); mtb_cssd.Text = CnasBaseData.SystemInfoData.Rows[0]["customer"].ToString(); //HCS-apppd-sec001 SortedList sttemp02 = new SortedList(); sttemp02.Add(1, App_ID); dtapppd = reCnasRemotCall.RemotInterface.SelectData("HCS-apppd-sec002", sttemp02); if (dtapppd != null) { for (int i = 0; i < dtapppd.Rows.Count; i++) { App_pd = App_pd + ",'" + dtapppd.Rows[i]["pd_code"].ToString() + "'"; //App_pd = App_pd + "," + dtapppd.Rows[i]["pd_code"].ToString() ; sl_allpd.Add(dtapppd.Rows[i]["pd_code"].ToString(), dtapppd.Rows[i]["pd_name"].ToString()); } App_pd = App_pd.Substring(1); } load_workorder("0"); }