Example #1
0
 public ProductSearchData GetData(string barCode)
 {
     ProductSearchData data = new ProductSearchData();
     if (DALObj.GetDataByBarCode(barCode, null))
     {
         data.LOID = DALObj.LOID;
         data.ACTIVE = DALObj.ACTIVE;
         data.BARCODE = DALObj.BARCODE;
         data.CODE = DALObj.CODE;
         data.NAME = DALObj.NAME;
         data.ABBNAME = DALObj.ABBNAME;
         data.PRODUCTGROUP = DALObj.PRODUCTGROUP;
         ABB.DAL.ProductGroupDAL groupDAL = new ABB.DAL.ProductGroupDAL();
         groupDAL.GetDataByLOID(DALObj.PRODUCTGROUP, null);
         data.PRODUCTTYPE = groupDAL.PRODUCTTYPE;
         data.COST = DALObj.COST;
         data.ISDISCOUNT = DALObj.ISDISCOUNT;
         data.ISEDIT = DALObj.ISEDIT;
         data.ISVAT = DALObj.ISVAT;
         data.LEADTIME = DALObj.LEADTIME;
         data.LOTSIZE = DALObj.LOTSIZE;
         data.ORDERTYPE = DALObj.ORDERTYPE;
         data.PRICE = DALObj.PRICE;
         data.REGISNO = DALObj.REGISNO;
         data.STDPRICE = DALObj.STDPRICE;
         data.UNIT = DALObj.UNIT;
     }
     return data;
 }
Example #2
0
 public ProductSearchData GetData(double loid)
 {
     ProductSearchData data = new ProductSearchData();
     if (MasterDALObj.GetDataByLOID(loid, null))
     {
         string sqlstr = MasterDALObj.LOID.ToString() + " AND ISDEFAULT = 'Y'";
         BarcodeDALObj.GetDataByProductMaster(sqlstr, null);
         data.LOID = MasterDALObj.LOID;
         data.PBLOID = BarcodeDALObj.LOID;
         data.CODE = MasterDALObj.CODE;
         data.ACTIVE = MasterDALObj.ACTIVE;
         data.BARCODE = BarcodeDALObj.BARCODE;
         data.NAME = MasterDALObj.NAME;
         data.ENAME = MasterDALObj.ENAME;
         data.ABBNAME = BarcodeDALObj.ABBNAME;
         data.PRODUCTGROUP = MasterDALObj.PRODUCTGROUP;
         ABB.DAL.ProductGroupDAL groupDAL = new ABB.DAL.ProductGroupDAL();
         groupDAL.GetDataByLOID(MasterDALObj.PRODUCTGROUP, null);
         data.PRODUCTTYPE = groupDAL.PRODUCTTYPE;
         data.COST = BarcodeDALObj.COST;
         data.LEADTIME = MasterDALObj.LEADTIME;
         data.LOTSIZE = MasterDALObj.LOTSIZE;
         data.LEADTIMEPD = MasterDALObj.LEADTIMEPD;
         data.LOTSIZEPD = MasterDALObj.LOTSIZEPD;
         data.ORDERTYPE = MasterDALObj.ORDERTYPE;
         data.PRICE = BarcodeDALObj.PRICE;
         data.REGISNO = MasterDALObj.REGISNO;
         data.STDPRICE = BarcodeDALObj.STDPRICE;
         data.UNIT = MasterDALObj.UNIT;
         data.PACKSIZE = BarcodeDALObj.PACKSIZE;
         data.PACKSIZEUNIT = BarcodeDALObj.PACKSIZEUNIT;
         //data.AGE = MasterDALObj.AGE;
     }
     return data;
 }
Example #3
0
 public ProductSearchData GetData(double loid)
 {
     ProductSearchData data = new ProductSearchData();
     if (DALObj.GetDataByLOID(loid, null))
     {
         data.LOID = DALObj.LOID;
         data.ACTIVE = DALObj.ACTIVE;
         data.BARCODE = DALObj.BARCODE;
         data.CODE = DALObj.CODE;
         data.NAME = DALObj.NAME;
         data.ABBNAME = DALObj.ABBNAME;
         data.PRODUCTGROUP = DALObj.PRODUCTGROUP;
         ABB.DAL.ProductGroupDAL groupDAL = new ABB.DAL.ProductGroupDAL();
         groupDAL.GetDataByLOID(DALObj.PRODUCTGROUP, null);
         data.PRODUCTTYPE = groupDAL.PRODUCTTYPE;
         data.COST = DALObj.COST;
         data.ISDISCOUNT = DALObj.ISDISCOUNT;
         data.ISEDIT = DALObj.ISEDIT;
         data.ISVAT = DALObj.ISVAT;
         data.LEADTIME = DALObj.LEADTIME;
         data.LOTSIZE = DALObj.LOTSIZE;
         data.LEADTIMEPD = DALObj.LEADTIMEPD;
         data.LOTSIZEPD = DALObj.LOTSIZEPD;
         data.ORDERTYPE = DALObj.ORDERTYPE;
         data.PRICE = DALObj.PRICE;
         data.REGISNO = DALObj.REGISNO;
         data.STDPRICE = DALObj.STDPRICE;
         data.UNIT = DALObj.UNIT;
         data.ISREFUND = DALObj.ISREFUND;
         data.PACKSIZE = DALObj.PACKSIZE;
         data.PACKSIZEUNIT = DALObj.PACKSIZEUNIT;
         data.REMARK = DALObj.REMARK;
     }
     return data;
 }