public void DELETE(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { try { using (Database db = new Database()) { DataTable dt = new DataTable(); db.Commands.Add(db.CreateCommand(QUERY_DELETE)); db.Commands[0].Parameters.Add(new Parameter("@KODEPROMO", MySqlDbType.VarChar, obj.KODE)); dt = db.Commands[0].ExecuteDataTable(); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public DataTable SEARCH_BYNAMA(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { DataTable dt = new DataTable(); try { using (Database db = new Database()) { db.Commands.Add(db.CreateCommand(QUERY_SEARCH_BYNAME)); db.Commands[0].Parameters.Add(new Parameter("@NAMAPROMO", MySqlDbType.VarChar, obj.NAMA)); dt = db.Commands[0].ExecuteDataTable(); } return(dt); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void UPDATE(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { try { using (Database db = new Database()) { DataTable dt = new DataTable(); db.Commands.Add(db.CreateCommand(QUERY_UPDATE)); db.Commands[0].Parameters.Add(new Parameter("@KODEPROMO", MySqlDbType.VarChar, obj.KODE)); db.Commands[0].Parameters.Add(new Parameter("@NAMAPROMO", MySqlDbType.VarChar, obj.NAMA)); db.Commands[0].Parameters.Add(new Parameter("@BARCODE", MySqlDbType.VarChar, obj.BARCODE)); db.Commands[0].Parameters.Add(new Parameter("@HARGAPOKOK", MySqlDbType.VarChar, obj.HARGAPOKOK)); db.Commands[0].Parameters.Add(new Parameter("@MARGINPROFIT", MySqlDbType.VarChar, obj.PROFIT)); db.Commands[0].Parameters.Add(new Parameter("@HARGAJUAL", MySqlDbType.VarChar, obj.HARGAJUAL)); db.Commands[0].Parameters.Add(new Parameter("@QTY", MySqlDbType.VarChar, obj.QTY)); dt = db.Commands[0].ExecuteDataTable(); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public DataTable SEARCH_BYNAMA(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { return(p.SEARCH_BYNAMA(obj)); }
public DataTable CARI_BYNAMA(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { return(p.CARI_BYNAMA(obj)); }
public void DELETE(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { p.DELETE(obj); }
public void UPDATE(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { p.UPDATE(obj); }
public void INSERT(RMS.COMMON.MASTER.RMS_BARANGPROMO obj) { p.INSERT(obj); }