public List<DataTable> ContraVoucherRegisterSearch(DateTime dtdateFrom, DateTime dtdateTo, string strVoucherNo, string strLedgerName, string strType) { List<DataTable> listObj = new List<DataTable>(); try { ContraMasterSP spContraMaster = new ContraMasterSP(); listObj = spContraMaster.ContraVoucherRegisterSearch(dtdateFrom, dtdateTo, strVoucherNo, strLedgerName, strType); } catch (Exception ex) { MessageBox.Show("CVBLL:8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return listObj; }
public decimal ContraMasterAdd(ContraMasterInfo contramasterinfo) { decimal decIdentity = 0; try { ContraMasterSP spContraMaster = new ContraMasterSP(); decIdentity = spContraMaster.ContraMasterAdd(contramasterinfo); } catch (Exception ex) { MessageBox.Show("CVBLL:10" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return decIdentity; }
public DataSet ContraVoucherPrinting(decimal decContraMasterId, decimal decCompanyId) { DataSet dSt = new DataSet(); try { ContraMasterSP spContraMaster = new ContraMasterSP(); dSt = spContraMaster.ContraVoucherPrinting(decContraMasterId, decCompanyId); } catch (Exception ex) { MessageBox.Show("CVBLL:12" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return dSt; }
public decimal ContraVoucherMasterGetMaxPlusOne(decimal decVoucherTypeId) { decimal max = 0; try { ContraMasterSP spContraMaster = new ContraMasterSP(); max = spContraMaster.ContraVoucherMasterGetMaxPlusOne(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("CVBLL:8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return max; }
public bool ContraVoucherCheckExistence(string voucherNo, decimal voucherTypeId, decimal masterId) { bool trueOrfalse = false; try { ContraMasterSP spContraMaster = new ContraMasterSP(); trueOrfalse = spContraMaster.ContraVoucherCheckExistence(voucherNo, voucherTypeId, masterId); } catch (Exception ex) { MessageBox.Show("CVBLL:9" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return trueOrfalse; }
public ContraMasterInfo ContraMasterView(decimal contraMasterId) { ContraMasterInfo contramasterinfo = new ContraMasterInfo(); try { ContraMasterSP spContraMaster = new ContraMasterSP(); contramasterinfo = spContraMaster.ContraMasterView(contraMasterId); } catch (Exception ex) { MessageBox.Show("CVBLL:12" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return contramasterinfo; }
public void ContraMasterEdit(ContraMasterInfo contramasterinfo) { try { ContraMasterSP spContraMaster = new ContraMasterSP(); spContraMaster.ContraMasterEdit(contramasterinfo); } catch (Exception ex) { MessageBox.Show("CVBLL:11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }