private void InitializationInfo() { string C_RES = ""; try { sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Incoming, "正在加载基础数据!"); sPrint.RichTextBoxMsg(rtbmsg); C_RES = "加载串口DLL失败"; bzz = new Buzzer.buzzer(); C_RES = "连接串口失败"; bzz.ConnPort("SFIS_ISCM"); C_RES = "工单类加载失败"; tWoInfo = new WebServices.tWoInfo.tWoInfo(); C_RES = "连接CodeSoft失败"; sPrint.ConnCodeSoft(); C_RES = "公共方法PubStor加载失败"; PubStor = new WebServices.tPublicStoredproc.tPublicStoredproc(); C_RES = "线体信息加载失败"; sLine = new WebServices.tLineInfo.tLineInfo(); C_RES = "用户信息加载失败"; userinfo = new WebServices.tUserInfo.tUserInfo(); //DataTable dt = ReleaseData.arrByteToDataTable(sLine.GetAllLineInfo()); //DataView dv = dt.DefaultView; //dv.Sort = "线别 ASC"; //DataTable dTemp = dv.ToTable(); //foreach (DataRow dr in dTemp.Rows) //{ // cb_Line.Items.Add(dr["线别"].ToString()); //} //cb_Line.SelectedIndex = 0; string filePath = System.Environment.CurrentDirectory + "\\SFIS_ISCM.ini"; LabDir = ReadIniFile.IniReadValue("TEST_INPUT", "Patch", filePath); LabInput.Text = ""; LabTarget.Text = ""; LabRoute.Text = ""; LabLine.Text = string.Empty; LabLine.Text = Encoder.Encoder.DecryptString(Encoder.ReadIniFile.IniReadValue("TEST_INPUT", "LINE", IniFilePath)); sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Incoming, "基础数据加载完成!"); } catch { sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Error, C_RES); } }
private void Frm_Material_Split_Load(object sender, EventArgs e) { //#region 添加应用程序 //if (this.mFrm.gUserInfo.rolecaption == "系统开发员") //{ // IList<IDictionary<string, object>> lsfunls = new List<IDictionary<string, object>>(); // FrmBLL.publicfuntion.GetFromCtls(this, ref lsfunls); // Dictionary<string, object> dic = new Dictionary<string, object>(); // dic.Add("PROGID", this.Name); // dic.Add("PROGNAME", this.Text); // dic.Add("PROGDESC", this.Text); // FrmBLL.publicfuntion.AddProgInfo(dic, lsfunls); //} //#endregion PL.ConnCodeSoft(); PL.RichTextBoxMsg(rtbmsg); }
private void Frm_MTR_RETURN_Load(object sender, EventArgs e) { #region 添加应用程序 if (this.mFrm.gUserInfo.rolecaption == "系统开发员") { IList <IDictionary <string, object> > lsfunls = new List <IDictionary <string, object> >(); FrmBLL.publicfuntion.GetFromCtls(this, ref lsfunls); Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("PROGID", this.Name); dic.Add("PROGNAME", this.Text); dic.Add("PROGDESC", this.Text); FrmBLL.publicfuntion.AddProgInfo(dic, lsfunls); } imbt_RePrint.Enabled = false; #endregion tb_FilePatch.Text = Directory.GetCurrentDirectory() + "\\LabelFile\\FEIXUN_LOT.lab"; splitContainer1.Width = this.Width / 3 - 30; tabControl1.SelectedIndex = 0; tb_woId.Focus(); try { sPL = new PrintDLL.PrintLabel(); sPL.ConnCodeSoft(); sPL.RichTextBoxMsg(rtbcancel); } catch { } dt_UpLoad_Erp.Columns.Add("SHIPPING_NO"); dt_UpLoad_Erp.Columns.Add("KP_NO"); dt_UpLoad_Erp.Columns.Add("QTY"); dt_UpLoad_Erp.Columns.Add("DEB_CRED"); dt_UpLoad_Erp.Columns.Add("STORE_LOC"); dt_UpLoad_Erp.Columns.Add("MOVE_STLOC"); dt_UpLoad_Erp.Columns.Add("PLANT"); }