public void receipt_delete(int ID)
 {
     receipt.Delete(ID);
     Insert_receipt_GridView.DataBind();
     Update_receipt_GridView.DataBind();
     Delete_receipt_GridView.DataBind();
 }
 public receipt receipt_insert()
 {
     receipt.Account_ID = Convert.ToInt32(Insert_Account_ID_txt.Text);
     receipt.Check_Num  = Convert.ToInt32(Insert_Check_Num_txt.Text);
     receipt.DLN        = Convert.ToInt32(Insert_DLN_txt.Text);
     receipt.Phone      = Convert.ToInt32(Insert_Phone_txt.Text);
     receipt.Pay_Type   = Convert.ToInt32(Insert_Pay_Type_txt.Text);
     receipt.Amount     = Convert.ToInt32(Insert_Amount_txt.Text);
     receipt.Transfer   = Convert.ToBoolean(Insert_Transfer_txt.Text);
     receipt.Recieve    = Convert.ToBoolean(Insert_Recieve_txt.Text);
     receipt            = receipt.Insert(receipt);
     Insert_receipt_GridView.DataBind();
     Update_receipt_GridView.DataBind();
     Delete_receipt_GridView.DataBind();
     return(receipt);
 }
 public receipt receipt_update(int ID)
 {
     receipt            = receipt.Select(ID);
     receipt.Receipt_ID = Convert.ToInt32(Update_Receipt_ID_txt.Text);
     receipt.Account_ID = Convert.ToInt32(Update_Account_ID_txt.Text);
     receipt.Check_Num  = Convert.ToInt32(Update_Check_Num_txt.Text);
     receipt.DLN        = Convert.ToInt32(Update_DLN_txt.Text);
     receipt.Phone      = Convert.ToInt32(Update_Phone_txt.Text);
     receipt.Pay_Type   = Convert.ToInt32(Update_Pay_Type_txt.Text);
     receipt.Amount     = Convert.ToInt32(Update_Amount_txt.Text);
     receipt.Transfer   = Convert.ToBoolean(Update_Transfer_txt.Text);
     receipt.Recieve    = Convert.ToBoolean(Update_Recieve_txt.Text);
     receipt.Update(receipt);
     Insert_receipt_GridView.DataBind();
     Update_receipt_GridView.DataBind();
     Delete_receipt_GridView.DataBind();
     return(receipt);
 }