private void LoadConfirmrequest() { if (!InTaskList.IsInTaskFinish()) { _comfirmintask = InTask.GetConfirmInTask(); if (_comfirmintask != null && _comfirmintask.INDEXNO > 0) { panelEx2.Visible = true; panelEx2.Dock = DockStyle.Fill; //labintaskno.Text = _comfirmintask.INTASKNO.ToString(); laborderdate.Text = _comfirmintask.ORDERDATE; //labintaskport.Text = _comfirmintask.INPORTCODE; labindexno.Text = _comfirmintask.INDEXNO.ToString() + "/" + maxtaskno; labcigcode.Text = _comfirmintask.BARCODE; labcigname.Text = _comfirmintask.CIGNAME; //labcigqty.Text = (_comfirmintask.INQTY/50).ToString(); } else { panelEx2.Visible = false; panelEx2.Dock = DockStyle.None; } } else { panelEx2.Visible = false; } }
private int GetCurrentInfo() { InTask _comfirmintask = InTask.GetConfirmInTask(); string orderdate = InTask.GetInTaskDate(); labtitle.Text = "当前补货卷烟 (" + orderdate + ")"; if (_comfirmintask != null && _comfirmintask.INDEXNO > 0) { panelEx2.Visible = true; if (currentindex != _comfirmintask.INDEXNO) { if (currentcolor >= 3) { currentcolor = 1; } foreach (var control in panelEx4.Controls) { if (control is LabelX) { ((LabelX)control).ForeColor = colors[currentcolor]; } } currentcolor++; } labindexno.Text = _comfirmintask.INDEXNO + "/" + maxtaskno; labbarcode.Text = _comfirmintask.BARCODE; labcigname.Text = _comfirmintask.CIGNAME; currentindex = _comfirmintask.INDEXNO; return(_comfirmintask.INDEXNO); } else { labindexno.Text = "无"; labbarcode.Text = "无"; labcigname.Text = "无"; } return(0); //} //else //{ // labindexno.Text = "补货完成"; // labcigname.Text = "补货完成"; // labbarcode.Text = "补货完成"; // labnbarcode.Text = "补货完成"; // labncigname.Text = "补货完成"; // return 0; //} }