private void phraseInitial() { APConfig.loadEnum <PhraseCategory>(ddlPhraseCategory); dgvPhrase.Rows.Clear(); txtPhraseName.Text = string.Empty; lblPhraseTotal.Text = "0"; }
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 PhraseEdit(mode pmode, string pcategory, string pserno = "") { InitializeComponent(); APConfig.loadEnum <PhraseCategory>(ddlCategory, pcategory); serno = pserno; mode = pmode; isItem = (pcategory == PhraseCategory.商品資訊.ToString()); ItemShowColumns(isItem); initView(); }