public LotDispatchForPalletViewContent() : base() { Panel panel = new Panel(); panel.Dock = DockStyle.Fill; panel.BorderStyle = BorderStyle.FixedSingle; //this.TitleName = model.TitleName; this.TitleName = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotDispatchForPalletViewContent.Title01}");//"过站作业_包装"; LotDispatchForPallet wk = new LotDispatchForPallet(this); wk.Dock = DockStyle.Fill; panel.Controls.Add(wk); this.control = panel; }
/// <summary> /// 包装作业查询功能 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Q_OK_Click(object sender, EventArgs e) { Hashtable hsParams = new Hashtable(); hsParams["flag"] = "pallet"; hsParams[POR_LOT_FIELDS.FIELD_LOT_NUMBER] = txtQ_LotNum.Text.Trim(); hsParams[WIP_CONSIGNMENT_FIELDS.FIELDS_ROOM_KEY] = roomkey; hsParams[WIP_CONSIGNMENT_FIELDS.FIELDS_PALLET_NO] = txtQ_PalletNo.Text.Trim(); hsParams[WIP_CONSIGNMENT_FIELDS.FIELDS_CREATE_TIME] = dtStart.Text.Trim(); hsParams[WIP_CONSIGNMENT_FIELDS.FIELDS_EDIT_TIME] = dtEnd.Text.Trim(); hsParams[POR_LOT_FIELDS.FIELD_LOT_NUMBER + "2"] = txtQ_LotNum2.Text.Trim(); hsParams[WIP_CONSIGNMENT_FIELDS.FIELDS_PALLET_NO + "2"] = txtQ_PalletNo2.Text.Trim(); LotDispatchForPallet lotdispatchforpallet = new LotDispatchForPallet(); //lotdispatchforpallet.palletime01 = txtQ_PalletNo.Text; //lotdispatchforpallet.palletime02 = txtQ_PalletNo2.Text; //lotdispatchforpallet.lotnom01 = txtQ_LotNum.Text; //lotdispatchforpallet.lotnum02 = txtQ_LotNum2.Text; //lotdispatchforpallet.equipmentkeys = betEquipment.EditValue.ToString(); //lotdispatchforpallet.palletime01 = dtStart.Text; //lotdispatchforpallet.palletime02 = dtEnd.Text; if (!string.IsNullOrEmpty(betEquipment.EditValue.ToString())) { hsParams.Add(WIP_CONSIGNMENT_FIELDS.FIELDS_EQUIPMENT_KEY, betEquipment.EditValue.ToString()); } DataSet dsReturn = lotEntity.GetQueryPalletData(hsParams); DataTable dtconsigment = dsReturn.Tables[WIP_CONSIGNMENT_FIELDS.DATABASE_TABLE_NAME]; if (dtconsigment.Rows.Count < 1) { MessageService.ShowMessage("没有查询到数据", "提示"); return; } dtCommon = dtconsigment; this.DialogResult = DialogResult.OK; this.Close(); }