public Fm_Orderinfo(EFModle.Model.TaskList task) { this.task = task; InitializeComponent(); br = new BillResolution(cigrShow1.Size); ORDERPACKAGEQTY = task.ORDERPACKAGEQTY; label_sortnum.Text = "任务号:" + task.SORTNUM; label_regioncode.Text = "车组号:" + task.REGIONCODE; label_sortseq.Text = "户序:" + task.SORTSEQ.ToString(); label_customcode.Text = "专卖证号:" + task.CUSTOMERCODE; label_packnum.Text = "总包数:" + task.ORDERPACKAGEQTY.ToString(); label_customername.Text = "客户名称:" + task.CUSTOMERNAME; label_allpacksortnum.Text = "总条数:" + task.ALLQTY; label_packageseq.Text = "当前订单第:1包"; //加载整个订单数据 data1 = FmOrderInofFun.QueryBySortnum(task.SORTNUM); MaxAllpackageseq = (int)data1.Max(x => x.ALLPACKAGESEQ).Value; MinAllpackageseq = (int)data1.Min(x => x.ALLPACKAGESEQ).Value; label_allpackageseq.Text = "当前包装机共:" + br.Length + "包"; label_nowpackageseq.Text = "当前包装机第:" + MinAllpackageseq + "包"; decimal PACKAGENUM = (decimal)data1.Where(x => x.ALLPACKAGESEQ == MinAllpackageseq).Select(x => x.PACKTASKNUM).FirstOrDefault(); label_packagetasknum.Text = "包装机任务号:" + PACKAGENUM.ToString(); }
public Fm_Orderinfo_All(decimal package) { this.task = GetAllOrderinfo.task(package); InitializeComponent(); br = new BillResolution(cigrShow1.Size); ORDERPACKAGEQTY = task.ORDERPACKAGEQTY; label_sortnum.Text = "任务号:" + task.SORTNUM; label_regioncode.Text = "车组号:" + task.REGIONCODE; label_sortseq.Text = "户序:" + task.SORTSEQ.ToString(); label_customcode.Text = "专卖证号:" + task.CUSTOMERCODE; label_SumCignum.Text = "订单总条数:" + task.ORDERPACKAGEQTY.ToString(); label_customername.Text = "客户名称:" + task.CUSTOMERNAME; label_allpacksortnum.Text = "总条数:" + task.ALLQTY; label_packageseq.Text = "当前订单第:" + task.PACKAGENUM + "包"; //加载整个订单数据 data1 = FmOrderInofFun.QueryBySortnum(task.SORTNUM); MaxAllpackageseq = (int)GetAllOrderinfo.GetMaxAllpackageseq(); MinAllpackageseq = (int)GetAllOrderinfo.GetMinAllpackageseq(); label_allpackageseq.Text = "当前包装机共:" + br.Length + "包"; label_nowpackageseq.Text = "当前包装机第:" + task.ALLPACKAGENUM + "包"; pkIndex = Convert.ToInt32(task.ALLPACKAGENUM); decimal packtasknum = (decimal)data1.Where(x => x.ALLPACKAGESEQ == task.ALLPACKAGENUM).Select(x => x.PACKTASKNUM).FirstOrDefault(); label_packtasknum.Text = "包装机任务号:" + packtasknum.ToString(); }
private void button4_Click(object sender, EventArgs e) { using (EFModle.Entities et = new EFModle.Entities()) { BillResolution br = new BillResolution(); List <TobaccoInfo> list = br.GetTobaccoInfoss(index, cigrShow1.Height); cigrShow1.UpdateValue(list); } }
//FmTest ft = new FmTest(); public FmInfo() { InitializeComponent(); ftd = new FmTaskDetail(); br = new BillResolution(cs.Size); label3.Text = "|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n"; Func += ChangeControlEnabled; handle += updateListBox; GetGroup = GetOpcServerGroup; cbCgyOrNot.Checked = true; AddListBtn(); FuncAutoRefsh = AutoRefshRobotShow; CheckFlag = true; // AutoScroll = true; }