Exemple #1
0
 private void barEditItem4_EditValueChanged(object sender, EventArgs e)
 {
     if (barEditItem3.EditValue!=null && barEditItem4.EditValue != null)
     {
         barButtonItem2.Enabled = true;
         ds = ClsGetData.GetItemTransferFileNotGenereted();//ds.Constraints.Remove("TRANID");
         iTEMTRANSFERMAINBindingSource.DataSource = ds;
     }
     else
     {
         barButtonItem2.Enabled = false;
     }
 }
Exemple #2
0
 public void LoadGridList()
 {
     ds = ClsGetData.GetItemTransferFileNotGenereted();//ds.Constraints.Remove("TRANID");
     iTEMTRANSFERMAINBindingSource.DataSource = ds;
 }
Exemple #3
0
 private void DataDisk_Load(object sender, EventArgs e)
 {
     //progressPanel1.Left = (Width + progressPanel1.Width)/2;
      
     ds = ClsGetData.GetItemTransferFileNotGenereted();//ds.Constraints.Remove("TRANID");
     iTEMTRANSFERMAINBindingSource.DataSource = ds;
 }
Exemple #4
0
 public string GetMaxTranid()
 {
     var ta = new ITEMTRANSFERMAINTableAdapter {Connection = {ConnectionString = _constr}};
     var dt = new DsInventory.ITEMTRANSFERMAINDataTable();
     ta.FillByDonwlodedTranids(dt, Utils.Company);
     string _ret = string.Empty;
     foreach (DataRow dr  in dt.Rows)
     {
         _ret += dr["TRANID"].ToString() + ",";
     }
     // return (string) ta.GetMaxTranid(Utils.Company) ?? null;
     return _ret;
 }
Exemple #5
0
 public DsInventory.ITEMTRANSFERMAINDataTable GetItemTransferByHold()
 {
     var ta = new ITEMTRANSFERMAINTableAdapter {Connection = {ConnectionString = _constr}};
     var ds = new DsInventory.ITEMTRANSFERMAINDataTable();
     ta.FillByHold(ds);
     return ds;
 }
Exemple #6
0
 public DsInventory.ITEMTRANSFERMAINDataTable GetItemTransferByid(string tranid, bool userothercomp = false,
     string concomp = "")
 {
     var ta = new ITEMTRANSFERMAINTableAdapter
     {
         Connection = {ConnectionString = userothercomp ? concomp : _constr}
     };
     var ds = new DsInventory.ITEMTRANSFERMAINDataTable();
     ta.FillByTranid(ds, tranid);
     return ds;
 }