public int GetRowCount(string filter) { using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); return(dao.GetRowCount(strTableView, filter)); } }
public DataSet QueryProfitLossBillDetail(int pageIndex, int pageSize, string filter, string OrderByFields) { using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); return(dao.Query(strTableView, strPrimaryKey, strQueryFields, pageIndex, pageSize, OrderByFields, filter, strTableView)); } }
public bool Delete(DataSet dataSet) { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); dao.DeleteEntity(dataSet); flag = true; } return(flag); }
public DataSet QueryByBillNo(string BillNo, int pageIndex, int pageSize) { string[] aryBillNo = BillNo.Split(','); string BillNoList = "''"; for (int i = 0; i < aryBillNo.Length; i++) { BillNoList += ",'" + aryBillNo[i] + "'"; } string sql = string.Format("SELECT {0} from {1} where BILLNO in ({2}) ORDER BY BILLNO DESC", strQueryFields, strTableView, BillNoList); using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); return(dao.Query(sql, strTableView, pageIndex, pageSize)); } }
public bool Insert() { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); string sql = string.Format("Insert into WMS_PL_BILLDETAIL (BILLNO,CELLCODE,PRODUCTCODE,QUANTITY,UNITCODE,PRICE,MEMO) values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')" , this.BILLNO, this.CELLCODE, this.PRODUCTCODE, this.QUANTITY, this.UNITCODE, this.PRICE, this.MEMO); dao.SetData(sql); flag = true; } return(flag); }
public bool Update() { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { ProfitLossBillDetailDao dao = new ProfitLossBillDetailDao(); string sql = string.Format("update WMS_PL_BILLDETAIL set BILLNO='{1}',CELLCODE='{2}',PRODUCTCODE='{3}',QUANTITY='{4}',UNITCODE='{5}',PRICE='{6}',MEMO='{7}' where ID='{0}'" , this.ID, this.BILLNO, this.CELLCODE, this.PRODUCTCODE, this.QUANTITY, this.UNITCODE, this.PRICE, this.MEMO); dao.SetData(sql); flag = true; } return(flag); }