Beispiel #1
0
 void  SaveDataToInventoryYear(int clo)
 {
   var t =  new YearEndClass().SaveDataToInventoryYear(_dsyearend);
   if (t == "1")
   {
       var b = new YearEndClass();
      _dsyearend = b.LoadYearEndInventory(clo);
       yearEndInventoryBindingSource.DataSource = _dsyearend;
       //gridControl1.DataSource = _dsyearend;
   }
 }
Beispiel #2
0
 private void YearEndProcess_Load(object sender, EventArgs e)
 {
     var ds = ClsGetData.GetItemGroup();
     repositoryItemLookUpEdit1.DataSource = ds;
     var dsW = ClsGetData.GetStoreList();
     var bsW = new BindingSource(dsW, "") { Filter = "COMPANY = '" + Utils.Company + "'" };
     lookupfrom.Properties.DataSource = bsW;
     var b = new YearEndClass();
     var ds1 = b.GetClosingYear();
     if (ds1.Rows.Count > 0)
     {
         if (_fClosingperiod == 0)
             _fClosingperiod = int.Parse(ds1.Rows[0]["CYEAR"].ToString());
         _dsyearend = b.LoadYearEndInventory(int.Parse(ds1.Rows[0]["CYEAR"].ToString())); 
     }
     _GridHeading = "Physical Inventory Report";
     yearEndInventoryBindingSource.DataSource = _dsyearend;// gridControl1.DataSource = _dsyearend;
     txtstock.Properties.Mask.EditMask = "\\d+";
     txtstock.Properties.Mask.MaskType = MaskType.RegEx;
 }