Beispiel #1
0
 public string GetSalesStore()
 {
     var retval = string.Empty;
     var ta = new DsMasterTableAdapters.STOREMASTTableAdapter {Connection = {ConnectionString = _constr}};
     var ds = new DsMaster().STOREMAST;
     ta.FillBySalesStore(ds, Utils.Company);
     if (ds.Rows.Count > 0)
         retval = ds[0][0].ToString();
     return retval;
 }
Beispiel #2
0
 public string GetSalesStore()
 {
     var ta = new DsMasterTableAdapters.STOREMASTTableAdapter {Connection = {ConnectionString = _constr}};
     var ds = new DsMaster().STOREMAST;
     ta.FillBySalesStore(ds, Utils.Company);
     string scode = string.Empty;
     foreach (DataRow dr in ds.Rows)
     {
         scode = dr["STORECODE"].ToString();
     }
     return scode;
 }