Ejemplo n.º 1
0
    protected void btnDel_Click(object sender, EventArgs e)
    {
        eFileInfo model = this.eff.GetModel(Convert.ToInt32(this.HdnRecoreId.Value));

        if (this.eff.Delete(Convert.ToInt32(this.HdnRecoreId.Value)) == 1)
        {
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            fileUpload.DeleteFile(model.FilePath.ToString());
            this.JS.Text = "alert('删除成功!');";
            if (this.RecordType == "2" && this.sl == "1")
            {
                SqlDataSource expr_8F = this.sqlBulletin;
                expr_8F.SelectCommand += " and SecretLevel = '3' ";
            }
            else
            {
                if (this.RecordType == "2" && this.sl == "")
                {
                    SqlDataSource expr_D0 = this.sqlBulletin;
                    expr_D0.SelectCommand += " and SecretLevel <> '3' ";
                }
            }
            this.GridView1.DataBind();
            return;
        }
        this.JS.Text = "alert('删除失败!');";
    }
Ejemplo n.º 2
0
    protected void btMod_Click(object sender, EventArgs e)
    {
        string text  = this.tbNewPwd1.Text;
        string text2 = this.tbNewPwd2.Text;
        string text3;

        if (this.FUFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.FUFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 1);
            text3 = array[1].ToString();
        }
        else
        {
            text3 = this.ImageName;
        }
        userManageDb userManageDb = new userManageDb();

        if (!(text == text2))
        {
            this.js.Text = "alert('您两次输入的新密码不相同,请重新输入!');";
            return;
        }
        if (userManageDb.updateUserAuditPwd(this.Page.Session["yhdm"].ToString(), text.ToString(), text3))
        {
            this.js.Text          = "alert('密码修改成功,下次审核请使用新密码!');";
            this.ImgName.ImageUrl = text3;
            return;
        }
        this.js.Text = "alert('密码修改未成功,请重试!');";
    }
Ejemplo n.º 3
0
    protected void BtnAdd_Click(object sender, EventArgs e)
    {
        Guid.NewGuid();
        DateTime  arg_0B_0  = DateTime.Now;
        Hashtable hashtable = new Hashtable();

        hashtable.Add("FileNumber", SqlStringConstructor.GetQuotedString(this.txtFileNumber.Text));
        hashtable.Add("SignUserName", SqlStringConstructor.GetQuotedString(this.txtSignUserName.Text));
        hashtable.Add("DraftDept", SqlStringConstructor.GetQuotedString(this.txtDraftDept.Text));
        hashtable.Add("IssueRange", SqlStringConstructor.GetQuotedString(this.txtIssueRange.Text));
        hashtable.Add("IssuePage", SqlStringConstructor.GetQuotedString(this.txtIssuePage.Text));
        hashtable.Add("ShareNumber", SqlStringConstructor.GetQuotedString(this.txtShareNumber.Text));
        hashtable.Add("IssueDate", SqlStringConstructor.GetQuotedString(this.txtIssueDate.Text));
        hashtable.Add("Remark", SqlStringConstructor.GetQuotedString(this.txtRemark.Text));
        if (this.FileUpload1.HasFile)
        {
            HttpPostedFile postedFile = this.FileUpload1.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 1);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        string where = " where FileID = '" + this.FileID.ToString() + " '";
        if (DocumentAction.UpdSendFileInfo(hashtable, where))
        {
            this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
            return;
        }
        this.JS.Text = "alert('保存失败!');";
    }
Ejemplo n.º 4
0
    protected void BtnOK_Click(object sender, EventArgs e)
    {
        QualityFileInfo qualityFileInfo = new QualityFileInfo();

        com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
        string[] array = fileUpload.Upload(this.FileUp.PostedFile, AnnexAssistAction.GetQSTable().ModuleID);
        qualityFileInfo.urlpath = array[1];
        if (array[2].ToString() != "")
        {
            this.JS.Text = "alert('" + array[2].ToString() + "');";
            return;
        }
        qualityFileInfo.title    = this.txtName.Text;
        qualityFileInfo.bz       = this.txtbz.Text;
        qualityFileInfo.modelkey = int.Parse(this.modelkey);
        qualityFileInfo.prjcode  = base.Request.QueryString["PrjCode"];
        int num = this.qa.InsertFile(qualityFileInfo);

        if (num == 1)
        {
            this.JS.Text = "alert('上传成功!');window.close();";
            return;
        }
        this.JS.Text = "alert('上传失败!');";
    }
Ejemplo n.º 5
0
 protected void IBtn_DelAnnex_Click(object sender, ImageClickEventArgs e)
 {
     com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
     fileUpload.DeleteFile(this.HL_Annex.NavigateUrl.ToString());
     this.Td_Look.Visible      = false;
     this.Td_Up.Visible        = true;
     this.RBSelectPath.Enabled = true;
 }
Ejemplo n.º 6
0
    protected void BtnAdd_Click(object sender, EventArgs e)
    {
        Guid     guid     = Guid.NewGuid();
        DateTime dateTime = default(DateTime);

        dateTime = DateTime.Now;
        Hashtable hashtable = new Hashtable();

        hashtable.Add("FileID", SqlStringConstructor.GetQuotedString(guid.ToString()));
        hashtable.Add("Title", SqlStringConstructor.GetQuotedString(this.txtTitle.Text));
        hashtable.Add("SendCorpName", SqlStringConstructor.GetQuotedString(this.txtSendCorpName.Text));
        hashtable.Add("ReceiveType", SqlStringConstructor.GetQuotedString(this.txtReceiveType.SelectedValue));
        hashtable.Add("ReceiveDate", SqlStringConstructor.GetQuotedString(this.txtReceiveDate.Text));
        hashtable.Add("Remark", SqlStringConstructor.GetQuotedString(this.txtRemark.Text));
        hashtable.Add("IsPigeonhole", SqlStringConstructor.GetQuotedString("0"));
        hashtable.Add("UserCode", SqlStringConstructor.GetQuotedString(this.UserCode));
        hashtable.Add("RecordDate", SqlStringConstructor.GetQuotedString(dateTime.ToString()));
        hashtable.Add("CorpCode", SqlStringConstructor.GetQuotedString(this.CorpCode));
        if (this.FileUpload1.HasFile)
        {
            HttpPostedFile postedFile = this.FileUpload1.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 1);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        if (this.FileID == Guid.Empty)
        {
            if (DocumentAction.AddReceiveFileInfo(hashtable))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
        else
        {
            string where = " where FileID = '" + this.FileID.ToString() + " '";
            if (DocumentAction.UpdReceiveFileInfo(hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
Ejemplo n.º 7
0
    private eFileInfo geteFileInfoModel()
    {
        eFileInfo eFileInfo = new eFileInfo();

        eFileInfo.RecordID    = this.rid;
        eFileInfo.PrjGuid     = this.PrjGuid;
        eFileInfo.RecordType  = this.RecordType;
        eFileInfo.CorpCode    = this.Session["CorpCode"].ToString();
        eFileInfo.FileTitle   = this.txtFileTitle.Text;
        eFileInfo.SubmitMan   = this.HdnSubmitMan.Value;
        eFileInfo.SubmitDate  = Convert.ToDateTime(this.DBSubmitDate.Text);
        eFileInfo.Remark      = this.txtRemark.Text;
        eFileInfo.FileCode    = this.txtFileCode.Text;
        eFileInfo.ClassID     = this.ClassID;
        eFileInfo.UserCode    = this.Session["yhdm"].ToString();
        eFileInfo.RecordDate  = Convert.ToDateTime(this.DBRecordDate.Text);
        eFileInfo.SaveLimit   = this.txtSaveLimit.Text;
        eFileInfo.SecretLevel = this.DDLSecretLevel.SelectedValue;
        eFileInfo.FileType    = this.DDLFileType.SelectedValue;
        eFileInfo.FileCopy    = this.DDLFileCopy.SelectedValue;
        if (this.Td_Up.Visible)
        {
            if (this.RBSelectPath.SelectedValue == "1")
            {
                if (this.FUFilePath.HasFile)
                {
                    HttpPostedFile postedFile = this.FUFilePath.PostedFile;
                    com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
                    string[] array = fileUpload.Upload(postedFile, 1);
                    eFileInfo.FilePath     = array[1].ToString();
                    eFileInfo.OriginalName = array[0].ToString();
                }
            }
            else
            {
                eFileInfo.FilePath     = this.txtFilePath.Text;
                eFileInfo.OriginalName = this.txtFilePath.Text;
            }
        }
        else
        {
            eFileInfo.FilePath     = "0";
            eFileInfo.OriginalName = "0";
        }
        return(eFileInfo);
    }
Ejemplo n.º 8
0
    protected void btnConfirm_Click(object sender, EventArgs e)
    {
        if (!(this.OpType == "Add"))
        {
            if (this.OpType == "Edit")
            {
                if (this.taa.updAccountModelRecord(this.tbModelName.Text.Trim(), Convert.ToInt32(base.Request.QueryString["RID"])))
                {
                    base.RegisterScript("top.ui.tabSuccess({ parentName: '_templetview' });");
                    return;
                }
                this.JS.Text = "alert('保存模板记录失败!')";
            }
            return;
        }
        com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
        string text     = this.FileModel.PostedFile.FileName.Substring(this.FileModel.PostedFile.FileName.LastIndexOf("\\") + 1);
        string filePath = "";

        if (this.Flag == "Q")
        {
            fileUpload.UploadPath = "QualityReport\\";
            filePath = "QualityReport/" + text;
        }
        else
        {
            if (this.Flag == "S")
            {
                fileUpload.UploadPath = "SafetyReport\\";
                filePath = "SafetyReport/" + text;
            }
        }
        if (!fileUpload.Upload(this.FileModel.PostedFile, text, false))
        {
            this.JS.Text = "alert('上传文件失败!');return false;";
            return;
        }
        if (this.taa.insAccountModelRecord(this.tbModelName.Text.Trim(), filePath, this.Flag))
        {
            base.RegisterScript("top.ui.tabSuccess({ parentName: '_templetview' });");
            return;
        }
        this.JS.Text = "alert('保存模板记录失败!')";
    }
Ejemplo n.º 9
0
    protected void Btn_excel_Click(object sender, EventArgs e)
    {
        if (this.File1.PostedFile.ContentLength == 0)
        {
            this.Page.RegisterStartupScript("", "<script>alert('请选择上传文件或上传文件内容为空!');</script>");
            return;
        }
        com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
        string[] array = fileUpload.Upload(this.File1.PostedFile, 14);
        if (array[1].ToString().IndexOf(".xls") == -1)
        {
            this.Page.RegisterStartupScript("", "<script>alert('请选择上传excel文件!');</script>");
            return;
        }
        if (array[1].Length == 0 || array[2].Length > 0)
        {
            this.js.Text = "alert('连接数据失败!')";
            return;
        }
        string text       = array[1].ToString();
        string myFileName = base.Server.MapPath(text.ToString());

        if (this.ImportType == 1)
        {
            this.data_bind1(myFileName);
        }
        else
        {
            if (this.ImportType == 2)
            {
                this.Rationdata_bind(myFileName);
            }
            else
            {
                if (this.ImportType == 3)
                {
                    this.data_bind3(myFileName);
                }
            }
        }
        this.Btn_imp.Enabled = true;
    }
Ejemplo n.º 10
0
    protected void ImageBtn_Click(object sender, ImageClickEventArgs e)
    {
        com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
        string value = this.hdnFilePath.Value;

        if (fileUpload.Delete(value))
        {
            this.tr_add.Visible  = true;
            this.tr_edit.Visible = false;
            Hashtable hashtable = new Hashtable();
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(""));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(""));
            string where = " where TempletID = '" + this.TemplateID + " '";
            if (DocumentAction.UpdDocTemplate(hashtable, where))
            {
                this.JS.Text = "alert('模板文件删除成功!');";
                return;
            }
            this.JS.Text = "alert('模板文件删除失败!');";
        }
    }
Ejemplo n.º 11
0
    protected void ImageBtn_Click(object sender, ImageClickEventArgs e)
    {
        com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
        string value = this.hdnFilePath.Value;

        if (fileUpload.Delete(value))
        {
            this.tr_add.Visible  = true;
            this.tr_edit.Visible = false;
            Hashtable hashtable = new Hashtable();
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(""));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(""));
            string where = " where RecordId = " + this.RecordID.ToString();
            if (ConferenceManage.UpdTemplateFraeInfo("[OA_Meeting_Project]", hashtable, where))
            {
                this.JS.Text = "alert('附件删除成功!');";
                return;
            }
            this.JS.Text = "alert('附件删除失败!');";
        }
    }
Ejemplo n.º 12
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();

        hashtable.Add("SummaryName", SqlStringConstructor.GetQuotedString(this.txtSummary.Text));
        if (this.txtFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.txtFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 4);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        string where = " where RecordId = " + this.MeetingInfoID.ToString();
        if (ConferenceManage.UpdMeetingInfo(hashtable, where))
        {
            this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
            return;
        }
        this.JS.Text = "alert('保存失败!');";
    }
Ejemplo n.º 13
0
    protected void BtnAdd_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();

        hashtable.Add("ClassID", this.ClassID.ToString());
        hashtable.Add("TempletName", SqlStringConstructor.GetQuotedString(this.txtTemplatName.Text));
        hashtable.Add("UserCode", SqlStringConstructor.GetQuotedString(this.hdnUserCode.Value));
        hashtable.Add("UploadTime", SqlStringConstructor.GetQuotedString(this.DBoxUploadTime.Text));
        hashtable.Add("Remark", SqlStringConstructor.GetQuotedString(this.txtRemark.Text));
        if (this.txtFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.txtFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 1);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        if (this.TemplateID == 0)
        {
            if (DocumentAction.AddDocTemplate(hashtable))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
        else
        {
            string where = " where TempletID = '" + this.TemplateID + " '";
            if (DocumentAction.UpdDocTemplate(hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
Ejemplo n.º 14
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();

        hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString());
        hashtable.Add("ProjectName", SqlStringConstructor.GetQuotedString(this.txtProjectName.Text));
        hashtable.Add("Content", SqlStringConstructor.GetQuotedString(this.txtContent.Text));
        if (this.txtFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.txtFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 4);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        if (this.RecordID == 0)
        {
            if (ConferenceManage.AddTemplateFraeInfo("[OA_Meeting_Project]", hashtable))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
        else
        {
            string where = " where RecordId = " + this.RecordID.ToString();
            if (ConferenceManage.UpdTemplateFraeInfo("[OA_Meeting_Project]", hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
Ejemplo n.º 15
0
    protected void SaveBt_Click(object sender, System.EventArgs e)
    {
        userManageDb userManageDb = new userManageDb();
        string       text;

        if (this.FUFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.FUFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 1);
            text = array[1].ToString();
        }
        else
        {
            text = this.ImageName;
        }
        if (userManageDb.updateUserAuditImg(this.Page.Session["yhdm"].ToString(), text))
        {
            this.js.Text          = "alert('审核签名设置成功!');";
            this.ImgName.ImageUrl = text;
            return;
        }
        this.js.Text = "alert('审核签名设置失败,请重试!');";
    }
Ejemplo n.º 16
0
    protected void BtnSave_Click(object sender, System.EventArgs e)
    {
        if (string.IsNullOrEmpty(this.txtLogin.Text.Trim()))
        {
            this.JS.Text = "top.ui.alert('系统账户不能为空!');";
            return;
        }
        if (!string.IsNullOrEmpty(this.txtIDCard.Text) && !Regex.IsMatch(this.txtIDCard.Text.Trim(), "([a-zA-Z]|\\d{17}|\\d{7}|\\d{8}(?:\\d|[xX])$)|(^\\d{15}$)"))
        {
            base.RegisterScript("top.ui.alert('输入的身份证格式不正确!');");
            this.txtIDCard.Focus();
            return;
        }
        DataTable dataTable = userManageDb.UserIsExist(this.txtLogin.Text.Trim());

        if (dataTable.Rows.Count > 0)
        {
            this.JS.Text = "top.ui.alert('该系统帐户已存在,请重新填写!');";
            return;
        }
        string[] array = PersonnelAction.setUserCode(this.DeptID.ToString());
        int      num   = System.Convert.ToInt32(array[0]);

        System.Collections.Hashtable hashtable = new System.Collections.Hashtable();
        hashtable.Add("i_xh", num.ToString());
        hashtable.Add("v_yhdm", SqlStringConstructor.GetQuotedString(array[1]));
        hashtable.Add("v_xm", SqlStringConstructor.GetQuotedString(this.txtName.Text));
        hashtable.Add("RelationCorp", SqlStringConstructor.GetQuotedString(this.CorpCode));
        hashtable.Add("i_bmdm", this.DeptID.ToString());
        hashtable.Add("I_DUTYID", this.ddltDuty.SelectedValue);
        int num2;

        if (this.txtAge.Text != "")
        {
            num2 = System.Convert.ToInt32(this.txtAge.Text);
        }
        else
        {
            num2 = 0;
        }
        hashtable.Add("Age", num2.ToString());
        hashtable.Add("Sex", SqlStringConstructor.GetQuotedString(this.ddltSex.SelectedValue));
        hashtable.Add("Nation", SqlStringConstructor.GetQuotedString(this.CombNation.Text));
        hashtable.Add("EducationalBackground", SqlStringConstructor.GetQuotedString(this.CombEducationalBackground.Text.Trim()));
        hashtable.Add("Stature", SqlStringConstructor.GetQuotedString(this.txtStature.Text));
        if (this.ddltPositionLevel.SelectedValue != "")
        {
            hashtable.Add("PositionLevel", this.ddltPositionLevel.SelectedValue);
        }
        hashtable.Add("ClassID", this.ddltClassID.SelectedValue);
        hashtable.Add("Address", SqlStringConstructor.GetQuotedString(this.txtAddress.Text));
        hashtable.Add("RegisteredPlace", SqlStringConstructor.GetQuotedString(this.txtRegisteredPlace.Text));
        hashtable.Add("PostAndRank", SqlStringConstructor.GetQuotedString(this.ddltPostAndRank.SelectedValue));
        hashtable.Add("ComputeLevel", SqlStringConstructor.GetQuotedString(this.CombComputeLevel.Text));
        hashtable.Add("EnglishLevel", SqlStringConstructor.GetQuotedString(this.CombEnglishLevel.Text));
        hashtable.Add("DriveLevel", SqlStringConstructor.GetQuotedString(this.CombDriveLevel.Text));
        hashtable.Add("Marriage", SqlStringConstructor.GetQuotedString(this.ddltMarriage.SelectedValue));
        hashtable.Add("Postcode", SqlStringConstructor.GetQuotedString(this.txtPostcode.Text));
        hashtable.Add("Tel", SqlStringConstructor.GetQuotedString(this.txtTel.Text));
        if (this.txtExpectationSalary.Text != "")
        {
            hashtable.Add("ExpectationSalary", System.Convert.ToDecimal(this.txtExpectationSalary.Text).ToString());
        }
        hashtable.Add("CommunicateAddress", SqlStringConstructor.GetQuotedString(this.txtCommunicateAddress.Text));
        hashtable.Add("State", "1");
        hashtable.Add("c_sfyx", SqlStringConstructor.GetQuotedString("y"));
        if (this.FileUpload1.HasFile)
        {
            HttpPostedFile postedFile = this.FileUpload1.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array2 = fileUpload.Upload(postedFile, 5);
            hashtable.Add("UserPhoto", SqlStringConstructor.GetQuotedString(array2[1]));
        }
        hashtable.Add("MobilePhoneCode", SqlStringConstructor.GetQuotedString(this.txtMobilePhoneCode.Text));
        if (!string.IsNullOrEmpty(this.dbBirthday.Text))
        {
            hashtable.Add("Birthday", SqlStringConstructor.GetQuotedString(this.dbBirthday.Text.Trim()));
        }
        hashtable.Add("IDCard", SqlStringConstructor.GetQuotedString(this.txtIDCard.Text));
        hashtable.Add("PoliticsFace", SqlStringConstructor.GetQuotedString(this.txtPoliticsFace.Text));
        if (!string.IsNullOrEmpty(this.dbJoinPartyDate.Text))
        {
            hashtable.Add("JoinPartyDate", SqlStringConstructor.GetQuotedString(this.dbJoinPartyDate.Text));
        }
        hashtable.Add("JoinCorpMode", SqlStringConstructor.GetQuotedString(this.txtJoinCorpMode.Text));
        hashtable.Add("Introducer", SqlStringConstructor.GetQuotedString(this.txtIntroducer.Text));
        hashtable.Add("Specialty", SqlStringConstructor.GetQuotedString(this.txtSpecialty.Text));
        hashtable.Add("GraduateSchool", SqlStringConstructor.GetQuotedString(this.txtGraduateSchool.Text));
        hashtable.Add("Level", SqlStringConstructor.GetQuotedString(this.txtLevel.Text));
        if (!string.IsNullOrEmpty(this.dbBeginWorkDate.Text))
        {
            hashtable.Add("BeginWorkDate", SqlStringConstructor.GetQuotedString(this.dbBeginWorkDate.Text));
        }
        hashtable.Add("PostAndCompetency", SqlStringConstructor.GetQuotedString(this.txtPostAndCompetency.Text));
        if (this.cblInsurance.Items[0].Selected)
        {
            hashtable.Add("EndowmentInsurance", "1");
        }
        else
        {
            hashtable.Add("EndowmentInsurance", "0");
        }
        if (this.cblInsurance.Items[1].Selected)
        {
            hashtable.Add("MedicareInsurance", "1");
        }
        else
        {
            hashtable.Add("MedicareInsurance", "0");
        }
        if (this.cblInsurance.Items[2].Selected)
        {
            hashtable.Add("UnemploymentInsurance", "1");
        }
        else
        {
            hashtable.Add("UnemploymentInsurance", "0");
        }
        if (this.cblInsurance.Items[3].Selected)
        {
            hashtable.Add("InjuryInsurance", "1");
        }
        else
        {
            hashtable.Add("InjuryInsurance", "0");
        }
        if (this.cblInsurance.Items[4].Selected)
        {
            hashtable.Add("HousingAccumulationFund", "1");
        }
        else
        {
            hashtable.Add("HousingAccumulationFund", "0");
        }
        if (this.cblInsurance.Items[5].Selected)
        {
            hashtable.Add("PersonSuddennessInsurance", "1");
        }
        else
        {
            hashtable.Add("PersonSuddennessInsurance", "0");
        }
        hashtable.Add("rdeNature", SqlStringConstructor.GetQuotedString(this.ddlrdeNature.SelectedValue.ToString()));
        if (!string.IsNullOrEmpty(this.txtconEndDate.Text))
        {
            hashtable.Add("conEndDate", SqlStringConstructor.GetQuotedString(this.txtconEndDate.Text));
        }
        hashtable.Add("urgentCellMan", SqlStringConstructor.GetQuotedString(this.txturgentCellMan.Text));
        hashtable.Add("ucmConcern", SqlStringConstructor.GetQuotedString(this.txtucmConcern.Text));
        hashtable.Add("ucmTel", SqlStringConstructor.GetQuotedString(this.txtucmTel.Text));
        if (!string.IsNullOrEmpty(this.txtFormalData.Text))
        {
            hashtable.Add("FormalDate", SqlStringConstructor.GetQuotedString(this.txtFormalData.Text));
        }
        hashtable.Add("userCode", SqlStringConstructor.GetQuotedString(this.txtUserCode.Text));
        if (!this.chbIsChargeMan.Checked)
        {
            hashtable.Add("IsChargeMan", SqlStringConstructor.GetQuotedString("false"));
        }
        else
        {
            hashtable.Add("IsChargeMan", SqlStringConstructor.GetQuotedString("true"));
        }
        if (this.dbEnterCorpDate.Text != "")
        {
            hashtable.Add("EnterCorpDate", SqlStringConstructor.GetQuotedString(System.Convert.ToDateTime(this.dbEnterCorpDate.Text).ToShortDateString()));
        }
        hashtable.Add("RTXID", SqlStringConstructor.GetQuotedString(this.txtLogin.Text));

        //添加人员
        if (!PersonnelAction.AddPersonnel(hashtable))
        {
            this.JS.Text = "top.ui.alert('保存失败!');";
            return;
        }
        else
        {
            //DataTable dt = PersonnelAction.QueryPersonnelById(array[1].ToString());
            //string strRe=WXAPI.createWXry(dt.Rows[0]);
            //if (strRe!="0") {
            //    this.JS.Text = "top.ui.alert('同步到微信失败!');";
            //}else { }
        }
        if (!this.chbIsChargeMan.Checked)
        {   // 不是部门负责人
            userManageDb.UserAdd(hashtable, this.txtLogin.Text.Trim());
            this.JS.Text = "successed();";
            return;
        }
        if (PersonnelAction.UpdatePT_yhmc(hashtable["v_yhdm"].ToString(), this.DeptID.ToString()))
        {
            userManageDb.UserAdd(hashtable, this.txtLogin.Text.Trim());
            this.JS.Text = "successed();";
            return;
        }
        this.JS.Text = "top.ui.alert('保存失败!');";
    }