protected void BtnUpdate_Click1(object sender, EventArgs e) { int i = CuttingTreeClass.Update(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, TXTTitle.Text, TXTDesc.Text, null, null); if (i == 0) { LblMsg.ForeColor = System.Drawing.Color.Red; LblMsg.Text = "خطا"; } }
protected void GV_ok(object sender, EventArgs e) { HtmlAnchor temp = (HtmlAnchor)sender; string kartableid = temp.Attributes["kartableid"].ToString(); string cuttingID = temp.Attributes["cuttingID"].ToString(); //tbl_Student_Lang.Update(Value, null, null, null, Kernel.PersonID(), 1, Kernel.UserID()); try { CuttingTreeClass.Update(cuttingID, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "1"); kartable.update(kartableid, null, null, null, null, null, null, null, "1", null); } catch { } BindGrid(); }
protected void btnErja_Click(object sender, EventArgs e) { string v = ddlErja.SelectedValue; string userid = v.Split(',')[0]; string roleid = v.Split(',')[1]; string status = ""; //if (roleid == "2") status = "9064"; //else if (roleid == "3") status = "9065"; //else if (roleid == "1") status = "9063"; try { kartable.Insert(null, roleid, DateTime.Now, userid, Session["roleid"].ToString(), Session["UserID"].ToString(), txtDesc.Text, null, txtid.Text); CuttingTreeClass.Update(txtid.Text, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, txtDesc.Text, roleid, "3"); } catch { } BindGrid(); }
protected void GV_cancel(object sender, EventArgs e) { //Button L = (Button)sender; //string Value = L.CommandArgument; HtmlAnchor temp = (HtmlAnchor)sender; string kartableid = temp.Attributes["kartableid"].ToString(); string cuttingID = temp.Attributes["cuttingID"].ToString(); try { CuttingTreeClass.Update(cuttingID, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "0"); kartable.update(kartableid, null, null, null, null, null, null, null, "0", null); // kartable.Insert(null, Session["roleid"].ToString(), DateTime.Now, Session["UserID"].ToString(), Session["roleid"].ToString(), Session["UserID"].ToString(), txtDesc.Text, "0", ID); } catch { } BindGrid(); }