private void inventoryInitial() { dgvInventory.Rows.Clear(); APConfig.loadPhrase(ddlInventoryDealer, PhraseCategory.負責人.ToString(), true); APConfig.loadPhrase(ddlInventoryVendor, PhraseCategory.供應商.ToString(), true); APConfig.loadEnum <InventoryStatus>(ddlInventoryStatus, "", true); txtInventoryName.Text = string.Empty; ckbInventoryINDTTM.Checked = false; ckbInventoryOUTDTTM.Checked = false; ckbInventoryRETURNDTTM.Checked = false; ddlInventoryVendor.SelectedIndex = 0; ddlInventoryDealer.SelectedIndex = 0; ddlInventoryStatus.SelectedIndex = 0; dpkInventoryINSDTTM.Value = DateTime.Today; dpkInventoryINEDTTM.Value = DateTime.Today; dpkInventoryOUTEDTTM.Value = DateTime.Today; dpkInventoryOUTSDTTM.Value = DateTime.Today; dpkInventoryRETURNSDTTM.Value = DateTime.Today; dpkInventoryRETURNEDTTM.Value = DateTime.Today; lblInventoryINAMT.Text = "0 元"; lblInventoryOUTAMT.Text = "0 元"; lblInventoryRETURNAMT.Text = "0 元"; lblInventoryNETTotal.Text = "0 元"; lblInventoryTotal.Text = "0"; ddlInventoryPage.Items.Clear(); }
public InventoryImportEdit(mode pmode, string pserno = "") { InitializeComponent(); APConfig.loadPhrase(ddlVendor, PhraseCategory.供應商.ToString()); serno = pserno; mode = pmode; initView(); }