Ejemplo n.º 1
0
        public void ItemCommand(System.Web.UI.WebControls.DataGridCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Supplement":

                BI.DeleteReceiptInfoByID(Convert.ToInt32(e.CommandArgument));
                break;
            }
            Load_MyGrid();
        }
Ejemplo n.º 2
0
        public bool Del(int EditID)
        {
            string IsSupplementReceipt = BI.IsSupplementReceipt(EditID);

            if ((IsSupplementReceipt == "Y") || (IsSupplementReceipt == "N" && BI.DontExistSupplementReceipt(EditID)))
            {
                BI.DeleteReceiptInfoByID(EditID);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
 public void ItemCommand(DataGridCommandEventArgs e)
 {
     switch (e.CommandName)
     {
     case "Delete":
         if (BI.AllowForDelete(Convert.ToInt32(e.CommandArgument)))
         {
             BI.DeleteReceiptInfoByID(Convert.ToInt32(e.CommandArgument));
             ShowMessage("");
         }
         else
         {
             ShowMessage(" در حال حاضر قادر به حذف این فیش نمی باشید . ابتدا تمام فیش های زیر گروه مربوطه را حذف نمایید. ");
         }
         break;
     }
     Load_dgBarcodeList("", "0", "0");
     Load_dgReceiptList();
 }