Beispiel #1
0
        public bool SaveChequePrint(ChequePrint obj)
        {
            Connect();
            SqlCommand CmdPatienBillsDetails = new SqlCommand("IUChequePrint", con);

            CmdPatienBillsDetails.CommandType = CommandType.StoredProcedure;
            CmdPatienBillsDetails.Parameters.AddWithValue("@HospitalID", HospitalID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@LocationID", LocationID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequePrintID", obj.ChequePrintID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@BankID", obj.BankID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@BankName", obj.BankName);
            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequeNo", obj.ChequeNo);

            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequeBookID", obj.ChequeBookID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@VoucherEntryID", obj.VoucherEntryID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@PayeeName", obj.PayeeName);
            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequeStatus", true);
            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequeAmount", obj.ChequeAmount);
            CmdPatienBillsDetails.Parameters.AddWithValue("@ChequeDate", Convert.ToDateTime(obj.ChequeDate));
            CmdPatienBillsDetails.Parameters.AddWithValue("@CurrentDate", DateTime.Now);
            CmdPatienBillsDetails.Parameters.AddWithValue("@TDS", obj.TDS);
            CmdPatienBillsDetails.Parameters.AddWithValue("@Amount", obj.TDSAmt);

            CmdPatienBillsDetails.Parameters.AddWithValue("@Narration", obj.Narretion);
            CmdPatienBillsDetails.Parameters.AddWithValue("@CreationID", UserID);
            CmdPatienBillsDetails.Parameters.AddWithValue("@Mode", "Edit");

            con.Open();
            CmdPatienBillsDetails.ExecuteNonQuery();
            con.Close();
            return(true);
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ChequePrint f2 = new ChequePrint();

            this.Visible = false;
            f2.ShowDialog();
            this.Visible = true;
        }
Beispiel #3
0
 public ActionResult ChequePrint(ChequePrint obj, FormCollection fm)
 {
     obj.BankID         = fm["Bankname"];
     obj.ChequeAmount   = fm["ChequeAmt"];
     obj.ChequeDate     = fm["Cheque Date"];
     obj.ChequeBookID   = fm["BookName"];
     obj.VoucherEntryID = Convert.ToInt32(fm["VoucherEntryID"]);
     obj.ChequePrintID  = Convert.ToInt32(fm["ChequePrintID"]);
     obj.Narretion      = fm["Narration"];
     obj.ChequeNo       = fm["Cheque"];
     obj.BankName       = fm["Bank"];
     KeystoneProject.Buisness_Logic.Financial.BL_ChequePrint BL_obj = new BL_ChequePrint();
     BL_obj.SaveChequePrint(obj);
     return(View());
 }