private void button_start_setLocations_Click(object sender, EventArgs e) { SelectBatchNoDialog dlg = new SelectBatchNoDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.Channel = this.Channel; dlg.Stop = this.stop; dlg.InventoryDbName = ""; dlg.LibraryCodeList = GetOwnerLibraryCodes(); this.MainForm.AppInfo.LinkFormState(dlg, "SelectBatchNoDialog_location_state"); dlg.ShowDialog(this); this.textBox_start_locations.Text = StringUtil.MakePathList(dlg.SelectedBatchNo, "\r\n"); return; }
private void button_baseList_getLocations_Click(object sender, EventArgs e) { // string strError = ""; SelectBatchNoDialog dlg = new SelectBatchNoDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.Channel = this.Channel; dlg.Stop = this.stop; dlg.InventoryDbName = ""; this.MainForm.AppInfo.LinkFormState(dlg, "SelectBatchNoDialog_location_state"); dlg.ShowDialog(this); this.textBox_baseList_locations.Text = StringUtil.MakePathList(dlg.SelectedBatchNo, "\r\n"); return; #if NO ERROR1: MessageBox.Show(this, strError); #endif }
private void button_list_getBatchNos_Click(object sender, EventArgs e) { string strError = ""; string strInventoryDbName = this._defs.InventoryDbName; if (string.IsNullOrEmpty(strInventoryDbName) == true) { strError = "尚未定义盘点库"; goto ERROR1; } SelectBatchNoDialog dlg = new SelectBatchNoDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.Channel = this.Channel; dlg.Stop = this.stop; dlg.InventoryDbName = strInventoryDbName; dlg.LibraryCodeList = GetOwnerLibraryCodes(); this.MainForm.AppInfo.LinkFormState(dlg, "SelectBatchNoDialog_state"); dlg.ShowDialog(this); this.textBox_inventoryList_batchNo.Text = StringUtil.MakePathList(dlg.SelectedBatchNo, "\r\n"); return; ERROR1: MessageBox.Show(this, strError); }