protected void btnAdd_Click(object sender, System.EventArgs e) { //if (RG_DW.IsExistByZiZhi(ZiZhiCode_2020.Text.Trim())) //{ // this.WriteAjaxMessage("alert('该资质编号已存在');"); // return; //} string RowGuid = Guid.NewGuid().ToString(); DWGuid_2020.Text = Request["DWGuid"]; ZiZhiText_2020.Text = RegionTreeView.Text; ZiZhiTextCode_2020.Text = RegionTreeView.Value; string strSql = "select ZuZhiJGDM from RG_OUInfo where RowGuid='" + Request["DWGuid"] + "'"; ZuZhiJGDM_2020.Text = Epoint.MisBizLogic2.DB.ExecuteToString(strSql); DelStatus_2020.SelectedValue = "0"; if (oAddPage.SaveTableValues_CheckExist(RowGuid, tdContainer, Request.QueryString["ParentRowGuid"])) { ////如果是父表,要转入多表编辑页面 //if (oAddPage.TableDetail.TableType == 1) //{ // Response.Redirect("MultiPageTab.aspx?mode=Mode&TableID=" + oAddPage.TableDetail.TableID + "&RowGuid=" + RowGuid); //} //Epoint.MisBizLogic2.Web.CodeGenerator.InitiateControl_AddPage(oAddPage, tdContainer); //if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") // this.WriteAjaxMessage("refreshParentHoldCurPage();EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); //else // this.WriteAjaxMessage("refreshParent();EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); this.WriteAjaxMessage("window.location.href='RG_QYZiZhi_Edit.aspx?RowGuid=" + RowGuid + "';alert('保存成功');refreshParent();"); } }
protected void btnAdd_Click(object sender, System.EventArgs e) { string RowGuid = Guid.NewGuid().ToString(); if (cardJPG.Text != "") { //CardIMG_2019.Text = Convert.FromBase64String(cardJPG.Text); CardImgType_2019.Text = "image/pjpeg"; } else { this.WriteAjaxMessage("alert('抱歉!请重新点击[读卡]读取照片后[保存]!');"); return; } //判断下身份证s是否已经有了 string oName = ""; if (RG_DW.IsExistByIDNO(IDNum_2019.Text.Trim(), out oName)) { this.WriteAjaxMessage("alert('该身份证已经存在,姓名为:" + oName + "');"); return; } DWGuid_2019.Text = Request["DWGuid"]; DelStatus_2019.SelectedValue = "0"; Status_2019.Text = "60"; string strSql = "select ZuZhiJGDM from RG_OUInfo where RowGuid='" + Request["DWGuid"] + "'"; ZuZhiJGDM_2019.Text = Epoint.MisBizLogic2.DB.ExecuteToString(strSql); if (oAddPage.SaveTableValues_CheckExist(RowGuid, tdContainer, Request.QueryString["ParentRowGuid"])) { if (cardJPG.Text != "") { Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oAddPage.TableDetail.SQL_TableName, RowGuid); //strSql = "UPDATE RG_QYUser SET CardIMG='" + Convert.FromBase64String(cardJPG.Text) + "' where RowGuid='" + RowGuid + "'"; //Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); oRow["CardIMG"] = Convert.FromBase64String(cardJPG.Text); oRow.Update(); } this.WriteAjaxMessage("window.location.href='RG_QYUser_Edit_Card.aspx?RowGuid=" + RowGuid + "&DWGuid=" + Request["DWGuid"] + "';alert('保存成功');refreshParent();"); } }
protected void btnAdd_Click(object sender, System.EventArgs e) { string RowGuid = Guid.NewGuid().ToString(); DWGuid_2021.Text = Request["DWGuid"]; DelStatus_2021.SelectedValue = "0"; if (RG_DW.IsExistZZGX(ZiZhiDJCode_2021.Text)) { if (oAddPage.SaveTableValues_CheckExist(RowGuid, tdContainer, Request.QueryString["ParentRowGuid"])) { //将资质与专业的对应关系复制成项目和专业的对应关系 RG_DW.CopyZZZYToXM(ZiZhiDJCode_2021.Text, RowGuid, Request["DWGuid"]); WriteAjaxMessage("window.location.href='RG_XMBeiAn_Edit.aspx?RowGuid=" + RowGuid + "&DWGuid=" + Request["DWGuid"] + "';alert('保存成功');refreshParent();"); } } else { this.WriteAjaxMessage("alert('该行业/专项/事务所没有配置专业,请联系管理员');"); } }
protected void btnAdd_Click(object sender, System.EventArgs e) { //验证单位是否已存在 DataView dvDW = dbDW.CheckCodeForRowGuid("ZuZhiJGDM", ZuZhiJGDM_2017.Text.Trim()); if (dvDW.Count > 0) { this.AlertAjaxMessage("已存在相同组织机构代码的单位:" + dvDW[0]["EnterpriseName"].ToString()); return; } dvDW = dbDW.CheckCodeForRowGuid("YingYeZZ", YingYeZZ_2017.Text.Trim()); if (dvDW.Count > 0) { this.AlertAjaxMessage("已存在相同营业执照号码的单位:" + dvDW[0]["EnterpriseName"].ToString()); return; } string RowGuid = Guid.NewGuid().ToString(); Status_2017.Text = "60"; SMJZSJ_2017.Text = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00"; if (oAddPage.SaveTableValues_CheckExist(RowGuid, tdContainer, Request.QueryString["ParentRowGuid"])) { //创建企业的用户 if (!dbUSER.CheckUserExist(ZuZhiJGDM_2017.Text.Trim())) { InsertUser(ZuZhiJGDM_2017.Text.Trim(), RowGuid, LianXiRen_2017.Text.Trim()); } this.WriteAjaxMessage("refreshParent();"); this.AlertAjaxMessage("数据保存成功!企业用户创建成功,登录名和密码均为组织结构代码证号"); this.WriteAjaxMessage("window.close();"); //更新下状态为编辑中 Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("rg_ouinfo", RowGuid); oRow["Status"] = "60"; oRow["DelStatus"] = "0"; oRow["IsNDBA"] = "0"; oRow.Update(); } }
protected void btnAdd_Click(object sender, System.EventArgs e) { string RowGuid = Guid.NewGuid().ToString(); //判断下身份证s是否已经有了 string oName = ""; if (RG_DW.IsExistByIDNO(IDNum_2019.Text.Trim(), out oName)) { this.WriteAjaxMessage("alert('该身份证已经存在,姓名为:" + oName + "');"); return; } //看注册章 if (YinZhangNo_2019.Text.Trim() != "") { if (ZCZ_YXQ_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章1有效期');"); return; } } else { ZCZ_YXQ_2019.Text = ""; } if (YinZhangNo1_2019.Text.Trim() != "") { if (ZCZ_YXQ1_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章2有效期');"); return; } } else { ZCZ_YXQ1_2019.Text = ""; } if (YinZhangNo2_2019.Text.Trim() != "") { if (ZCZ_YXQ2_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章3有效期');"); return; } } else { ZCZ_YXQ2_2019.Text = ""; } ZhuanYeCS_2019.Text = RegionTreeView.Text; ZhuanYeCSCode_2019.Text = RegionTreeView.Value; DWGuid_2019.Text = Request["DWGuid"]; DelStatus_2019.SelectedValue = "0"; Status_2019.Text = "60"; string strSql = "select ZuZhiJGDM from RG_OUInfo where RowGuid='" + Request["DWGuid"] + "'"; ZuZhiJGDM_2019.Text = Epoint.MisBizLogic2.DB.ExecuteToString(strSql); if (oAddPage.SaveTableValues_CheckExist(RowGuid, tdContainer, Request.QueryString["ParentRowGuid"])) { this.WriteAjaxMessage("window.location.href='RG_QYUser_Edit.aspx?RowGuid=" + RowGuid + "';alert('保存成功');refreshParent();"); } }