Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public PhraseEdit(mode pmode, string pcategory, string pserno = "")
 {
     InitializeComponent();
     APConfig.loadEnum <PhraseCategory>(ddlCategory, pcategory);
     serno = pserno;
     mode  = pmode;
     initView();
 }
Exemplo n.º 3
0
 private void phraseInitial()
 {
     APConfig.loadEnum <PhraseCategory>(ddlPhraseCategory);
     dgvPhrase.Rows.Clear();
     txtPhraseName.Text  = string.Empty;
     txtPhraseType.Text  = string.Empty;
     lblPhraseTotal.Text = "0";
 }