Esempio n. 1
0
 private void DgvStoreGetOutItems_Sorted(object sender, EventArgs e)
 {
     for (int i = 0; i < this.dtStoreGetOutItems.Rows.Count; i++)
     {
         this.dgvStoreGetOutItems.Rows[i].Cells["nvcStuffStoreCodeAsName"].Value =
             StoreCode.GetNameByStoreCode(this.cnConnection, this.dgvStoreGetOutItems.Rows[i].Cells["nvcStuffStoreCode"].Value.ToString());
     }
 }
Esempio n. 2
0
        private void StoreGetOutItemUpdate_Load(object sender, EventArgs e)
        {
            this.cbActionType.DataSource = Enum.GetValues(typeof(ActionType));

            this.tbAmount.Text              = this.sgoiUpdate.dobStuffAmount.ToString();
            this.tbStoreGetOutNumber.Text   = this.sgoiUpdate.intStoreGetOutNumber.ToString();
            this.labStuff.Text              = StoreCode.GetNameByStoreCode(this.cnConnection, this.sgoiUpdate.strStuffStoreCode);
            this.cbActionType.SelectedIndex = --this.sgoiUpdate.intTechnicalActionType;

            SetEnableBtmOk();
        }
Esempio n. 3
0
        public void SearchRequestItems()
        {
            this.dtStoreGetOutItems = StoreGetOutItem.GetStoreGetOutItemsBySGONumber(this.cnConnection, this.sgoStoreGetOut.intNumber);

            this.dgvStoreGetOutItems.DataSource = this.dtStoreGetOutItems;

            for (int i = 0; i < this.dtStoreGetOutItems.Rows.Count; i++)
            {
                this.dgvStoreGetOutItems.Rows[i].Cells["nvcStuffStoreCodeAsName"].Value =
                    StoreCode.GetNameByStoreCode(this.cnConnection, this.dgvStoreGetOutItems.Rows[i].Cells["nvcStuffStoreCode"].Value.ToString());
                this.dgvStoreGetOutItems.Rows[i].Cells["intTechnicalActionTypeAsName"].Value =
                    (ActionType)this.dgvStoreGetOutItems.Rows[i].Cells["intTechnicalActionType"].Value;
            }
        }