Exemplo n.º 1
0
    protected void grv_stock_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string id = e.CommandArgument.ToString();

        if (e.CommandName == "del")
        {
            Delete_Logic.Delete_data("delete_tbl_stock_sp", id);
            bind_stock();
        }



        string status = "";

        if (e.CommandName == "act" || e.CommandName == "dec")
        {
            if (e.CommandName == "act")
            {
                status = "1";
            }
            else
            {
                status = "0";
            }
            Update_Logic.update_status("update_status_tbl_stock_sp", status, id);
            bind_stock();
        }
    }//end row command
Exemplo n.º 2
0
    protected void modal_ok_Click(object sender, EventArgs e)
    {
        String id = User_Property_id.id;

        Delete_Logic.Delete_data("delete_tbl_category_sp", User_Property_id.id);
        bind_product();
    }
Exemplo n.º 3
0
    protected void grv_prod_selling_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string id   = e.CommandArgument.ToString(); // id="temp_id"
        string p_id = find_product_id_give_temp_selling_id(id);

        //change status to one
        Update_Logic.update_status("update_status_tbl_product_sp", "1", p_id);

        //and update stock=stock+1
        DataTable dt1   = Select_Logic.Find_Stock_Information("tbl_stock_give_p_id", p_id);
        int       stock = Convert.ToInt32((dt1.Rows[0][2]).ToString());

        stock = stock + 1;
        //update stock
        string sub_cat_id = dt1.Rows[0]["sub_cat_id"].ToString();

        Update_Logic.deduct_stock(sub_cat_id, stock.ToString());

        int ii = Delete_Logic.Delete_data("delete_tbl_temp_selling_sp", id);

        fetch_sell_data();
    }
 protected void modal_ok_Click(object sender, EventArgs e)
 {
     Delete_Logic.Delete_data("delete_tbl_dealer_sp", User_Property_id.id);
     bind_Dealer();
     ModalPopupExtender1.Hide();
 }
Exemplo n.º 5
0
 protected void modal_ok_Click(object sender, EventArgs e)
 {
     deduct_stock_delete_product(User_Property_id.id);
     Delete_Logic.Delete_data("delete_tbl_product_sp", User_Property_id.id);
     bind_product();
 }
Exemplo n.º 6
0
 protected void modal_ok_Click(object sender, EventArgs e)
 {
     Delete_Logic.Delete_data("delete_tbl_sub_category_sp", User_Property_id.id);
     bind_Sub_Category();
 }
 protected void modal_ok_Click(object sender, EventArgs e)
 {
     Delete_Logic.Delete_data("delete_tbl_order_sp", User_Property_id.id);
     bind_order();
 }