private void CellDistribute_Load(object sender, EventArgs e) { #region 获取当前主机的登录用户 FuncTagInfo functionTag = null; functionTag = new FuncTagInfo(); functionTag.FuncName = "getCurrentUser"; functionTag.ComputerName = Dns.GetHostName();; WcfRequests.SendGeneralRequest(onCurrentUserReceive, functionTag); #endregion #region 初始化comobox的下拉项 List <string> inParameters = new List <string>(); inParameters.Add(BasicClass.comoboxItemName.Workshop); inParameters.Add(BasicClass.comoboxItemName.Cell_comp); inParameters.Add(BasicClass.comoboxItemName.Cell_color); //inParameters[1] = "wo_type"; //inParameters[2] = "cristal_type"; //inParameters[3] = "cell_size"; //inParameters[4] = "cell_consumption"; //inParameters[5] = "cell_type"; //inParameters[6] = "wo_type"; functionTag = new FuncTagInfo(); functionTag.FuncName = "GetComoboxItems"; functionTag.InputParams = inParameters.ToArray(); WcfRequests.SendGeneralRequest(onReceiveComoboxItems, functionTag); #endregion BasicClass.EnterToTab(groupBox_cell_info); //asc.controllInitializeSize(this); //this.SizeChanged += new EventHandler(MachineMaintain_SizeChanged); changeColorTimer.Interval = 1000 * 60;//60 second changeColorTimer.Tick += new EventHandler(changeColorTimer_Tick); //创建文件夹,打印用 if (!Directory.Exists(@"c:\BarcodePrint_cell")) { Directory.CreateDirectory(@"c:\BarcodePrint_cell"); } }
private void BuildWO_Load(object sender, EventArgs e) { #region 获取当前主机的登录用户 FuncTagInfo functionTag = null; functionTag = new FuncTagInfo(); functionTag.FuncName = "getCurrentUser"; functionTag.ComputerName = Dns.GetHostName();; WcfRequests.SendGeneralRequest(onCurrentUserReceive, functionTag); #endregion #region 初始化comobox的下拉项 List <string> inParameters = new List <string>(); inParameters.Add(BasicClass.comoboxItemName.Workshop); inParameters.Add(BasicClass.comoboxItemName.WO_type); inParameters.Add(BasicClass.comoboxItemName.Cristal_Type); inParameters.Add(BasicClass.comoboxItemName.Cell_Size); inParameters.Add(BasicClass.comoboxItemName.Cell_Consumption); inParameters.Add(BasicClass.comoboxItemName.Cell_Type); inParameters.Add(BasicClass.comoboxItemName.Workflow); inParameters.Add(BasicClass.comoboxItemName.Module_color); inParameters.Add(BasicClass.comoboxItemName.Module_type); inParameters.Add(BasicClass.comoboxItemName.PID_type); inParameters.Add(BasicClass.comoboxItemName.Product_name1); inParameters.Add(BasicClass.comoboxItemName.Product_name2); functionTag = new FuncTagInfo(); functionTag.FuncName = "GetComoboxItems"; functionTag.InputParams = inParameters.ToArray();; WcfRequests.SendGeneralRequest(onReceiveComoboxItems, functionTag); #endregion BasicClass.EnterToTab(groupBox_woinfo); //asc.controllInitializeSize(this); //this.SizeChanged += new EventHandler(MachineMaintain_SizeChanged); changeColorTimer.Interval = 1000 * 60;//60 second changeColorTimer.Tick += new EventHandler(changeColorTimer_Tick); }
private void MachineMaintain_Load(object sender, EventArgs e) { #region 获取当前主机的登录用户 FuncTagInfo functionTag = null; functionTag = new FuncTagInfo(); functionTag.FuncName = "getCurrentUser"; functionTag.ComputerName = Dns.GetHostName();; WcfRequests.SendGeneralRequest(onCurrentUserReceive, functionTag); #endregion BasicClass.EnterToTab(groupBoxAddMachine); //asc.controllInitializeSize(this); //this.SizeChanged += new EventHandler(MachineMaintain_SizeChanged); changeColorTimer.Interval = 1000 * 60;//60 second changeColorTimer.Tick += new EventHandler(changeColorTimer_Tick); }