protected void btnShajBank_Click(object sender, EventArgs e) { //if(Convert.ToInt32( txtPrice.Text)<10000) //{ // TerraficPlanBLL.Utility.ShowMsg(Page,TerraficPlanBLL.ProPertyData.MsgType.warning,"مبلغ شارژ باید از 1000 تومات بیشتر باشد"); // return; //} ClSharj cl = new ClSharj(); cl.CodeMelli = TXTNationalCode.Text; cl.Mobile = TXTPersonalMobile.Text; cl.ShariPrice = Convert.ToInt32(txtPrice.Text); int i = SharjClass.insert(cl); if (i == 0) { TerraficPlanBLL.Utility.ShowMsg(Page, TerraficPlanBLL.ProPertyData.MsgType.warning, "خطا در ثبت"); } else { Pay_Click(i, Convert.ToInt32(txtPrice.Text)); } }
public void DeleteItem(object sender, System.EventArgs e) { String SharjID = ((HtmlAnchor)sender).HRef.ToString(); int i = SharjClass.Delete(SharjID); if (i == 0) { // LblMsg.Text = " error "; ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('خطا در حذف');", true); } else { BindGrid(); } }
public void BindGrid() { ClSharj cl = new ClSharj(); cl.PersonalID = Convert.ToInt32(LBLPersonlID.Text); DataSet ds = SharjClass.GetList(cl); DataView dv = new DataView(ds.Tables[0]); if (ViewState["Sharj"] == null) { ViewState["Sharj"] = "SharjID Desc"; } dv.Sort = Securenamespace.SecureData.CheckSecurity(ViewState["Sharj"].ToString()).ToString(); GridView1.DataSource = dv; GridView1.DataBind(); }
protected void btnShajBank_Click(object sender, EventArgs e) { ClSharj cl = new ClSharj(); cl.PersonalID = Convert.ToInt32(LBLPersonlID.Text); cl.ShariPrice = Convert.ToInt32(txtPrice.Text); cl.ShajComment = txtComment.Text; int i = SharjClass.insert(cl); if (i == 0) { TerraficPlanBLL.Utility.ShowMsg(Page, TerraficPlanBLL.ProPertyData.MsgType.warning, ""); } else { Pay_Click(i, Convert.ToInt32(txtPrice.Text)); BindGrid(); } }