Beispiel #1
0
    private void SaveSlopChestCommision()
    {
        string STR = "";

        try
        {
            foreach (GridViewRow GridRow in grdSlopChestCommision.Rows)
            {
                string Items     = ((Label)GridRow.FindControl("lblItemID")).Text;
                string Commision = ((TextBox)GridRow.FindControl("txtCommision")).Text;
                if (Commision != "")
                {
                    STR += "|" + Items + "," + Commision;
                }
            }
            int    retval   = BLL_SLC_Admin.INS_UPD_SlopChest_Commision(STR.Substring(1), Convert.ToInt32(Session["USERID"]));
            string message1 = "alert('Saved Successfully.');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "message1", message1, true);
        }
        catch
        {
            string message1 = "alert('Error Occurred while Saving.');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "message1", message1, true);
        }
        finally
        {
        }
    }
Beispiel #2
0
 private void Get_SlopChest_Items()
 {
     try
     {
         DataTable dtItems = BLL_SLC_Admin.Get_SlopChest_Items();
         grdSlopChestCommision.DataSource = dtItems;
         grdSlopChestCommision.DataBind();
     }
     catch
     {
     }
 }