Ejemplo n.º 1
0
 public StockInPOData GetStockInPOData(double loid, double PDOrder)
 {
     StockInPOData data = new StockInPOData();
     data.PDORDER = PDOrder;
     DataTable dt = PODALObj.GetStockInPOData(loid);
     if (dt.Rows.Count == 1)
     {
         data.CODE = dt.Rows[0]["CODE"].ToString();
         data.INVNO = dt.Rows[0]["INVNO"].ToString();
         data.LOID = Convert.ToDouble(dt.Rows[0]["LOID"]);
         data.SENDER = Convert.ToDouble(dt.Rows[0]["SENDER"]);
         data.STATUS = dt.Rows[0]["STATUS"].ToString();
         data.SUPPLIERNAME = dt.Rows[0]["SUPPLIERNAME"].ToString();
     }
     PDOrderDAL _orderDAL = new PDOrderDAL();
     if (_orderDAL.GetDataByLOID(PDOrder, null))
     {
         data.ORDERCODE = _orderDAL.CODE;
     }
     return data;
 }
Ejemplo n.º 2
0
 public StockInPOData GetStockInPOData(double loid)
 {
     StockInPOData data = new StockInPOData();
     DataTable dt = PODALObj.GetStockInPOData(loid);
     if (dt.Rows.Count == 1)
     {
         data.CODE = dt.Rows[0]["CODE"].ToString();
         data.INVNO = dt.Rows[0]["INVNO"].ToString();
         data.LOID = Convert.ToDouble(dt.Rows[0]["LOID"]);
         data.SENDER = Convert.ToDouble(dt.Rows[0]["SENDER"]);
         data.STATUS = dt.Rows[0]["STATUS"].ToString();
         data.SUPPLIERNAME = dt.Rows[0]["SUPPLIERNAME"].ToString();
     }
     return data;
 }