private void inventoryInitial() { dgvInventory.Rows.Clear(); APConfig.loadPhrase(ddlInventoryDealer, PhraseCategory.案件負責人.ToString(), true); APConfig.loadEnum <InventoryStatus>(ddlInventoryStatus, "", true); txtInventoryCode.Text = string.Empty; txtInventoryName.Text = string.Empty; ckbInventoryINDTTM.Checked = false; ckbInventoryOUTDTTM.Checked = false; ckbInventoryPOSTDTTM.Checked = false; ckbInventoryRETURNDTTM.Checked = false; 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; dpkInventoryPOSTSDTTM.Value = DateTime.Today; dpkInventoryPOSTEDTTM.Value = DateTime.Today; lblInventoryINAMT.Text = "0 元"; lblInventoryOUTAMT.Text = "0 元"; lblInventoryPOSTAMT.Text = "0 元"; lblInventoryRETURNAMT.Text = "0 元"; lblInventoryTotal.Text = "0"; ddlInventoryPage.Items.Clear(); }
public PhraseEdit(mode pmode, string pcategory, string pserno = "") { InitializeComponent(); APConfig.loadEnum <PhraseCategory>(ddlCategory, pcategory); serno = pserno; mode = pmode; initView(); }
private void phraseInitial() { APConfig.loadEnum <PhraseCategory>(ddlPhraseCategory); dgvPhrase.Rows.Clear(); txtPhraseName.Text = string.Empty; txtPhraseType.Text = string.Empty; lblPhraseTotal.Text = "0"; }