Beispiel #1
0
    private void EntExpertBind()
    {
        string strPrjCode = this.ViewState["PRJCODE"].ToString();

        this.DGrdExpert.DataSource = ExperProjectAction.GetEntContructList(strPrjCode);
        this.DGrdExpert.DataBind();
    }
Beispiel #2
0
 protected void BtnSave_Click(object sender, EventArgs e)
 {
     if (this._Type == "Auditing")
     {
         ExpertProjectInfo pPMContructInfo = this.GetPPMContructInfo();
         int num = ExperProjectAction.SetPPMAudit(pPMContructInfo);
         if (num == 1)
         {
             string text = " parent.desktop.flowclass.location='/EPC/17/Frame.aspx?url=../../epc/17/Ppm/ScienceInnovate/ExpertProjectQuery.aspx&Type=Auditing&PrjState=0';";
             text        += "alert('审核成功');";
             text        += "top.frameWorkArea.window.desktop.getActive().close();";
             this.Js.Text = text;
             return;
         }
         this.Js.Text = "alert('审核失败!'); ";
         return;
     }
     else
     {
         ExpertProjectInfo entContructInfo = this.GetEntContructInfo();
         int num = ExperProjectAction.SetEntAudit(entContructInfo);
         if (num == 1)
         {
             string text2 = " parent.desktop.flowclass.location='/EPC/17/Frame.aspx?url=../../epc/17/Ppm/ScienceInnovate/ExpertProjectQuery.aspx&Type=List&PrjState=0';";
             text2       += "alert('审核成功');";
             text2       += "top.frameWorkArea.window.desktop.getActive().close();";
             this.Js.Text = text2;
             return;
         }
         this.Js.Text = "alert('审核失败!'); ";
         return;
     }
 }
    private void GetExpertInfoOfUpd(string Id)
    {
        DataTable singleExpertInfo = ExperProjectAction.GetSingleExpertInfo(Id);

        this.TxtUnit.Text           = singleExpertInfo.Rows[0]["V_BMMC"].ToString();
        this.HdnUnit.Value          = singleExpertInfo.Rows[0]["PrjCode"].ToString();
        this.TxtPrjName.Text        = singleExpertInfo.Rows[0]["PrjName"].ToString();
        this.TxtExperName.Text      = singleExpertInfo.Rows[0]["SchemeName"].ToString();
        this.TxtAuditCircs.Text     = singleExpertInfo.Rows[0]["ExamineApprove"].ToString();
        this.TxtWeave.Text          = singleExpertInfo.Rows[0]["Weavemc"].ToString();
        this.HdnWeaver.Value        = singleExpertInfo.Rows[0]["WeavePeople"].ToString();
        this.DateWeaverTime.Text    = Convert.ToDateTime(singleExpertInfo.Rows[0]["WeaveDate"].ToString()).ToShortDateString();
        this.TxtFillName.Text       = singleExpertInfo.Rows[0]["Fillmc"].ToString();
        this.HdnFillName.Value      = singleExpertInfo.Rows[0]["FillPeople"].ToString();
        this.DateFillTime.Text      = Convert.ToDateTime(singleExpertInfo.Rows[0]["FillDate"].ToString()).ToShortDateString();
        this.TxtScript.Text         = singleExpertInfo.Rows[0]["SchemEbewrite"].ToString();
        this.TxtRemark.Text         = singleExpertInfo.Rows[0]["Remark"].ToString();
        this.hdnFlowGuid.Value      = singleExpertInfo.Rows[0]["FlowGuid"].ToString();
        this.FileLink1.FID          = this.hdnFlowGuid.Value.Trim();
        this.DDTClass.SelectedValue = singleExpertInfo.Rows[0]["filesType"].ToString();
        if (singleExpertInfo.Rows[0]["mark"].ToString().Equals("2"))
        {
            this.cbkmark.Checked = false;
            this.TrGDType.Attributes.Add("style", "display:none;");
            return;
        }
        this.cbkmark.Checked = true;
        this.TrGDType.Attributes.Add("style", "display:block;");
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true);
         DataTable dataTable = new DataTable();
         if (base.Request.QueryString["ic"] != null)
         {
             string g = base.Request.QueryString["ic"];
             dataTable = this.Bll.getModelByGuid("Prj_V_ExpertProject", new Guid(g));
         }
         else
         {
             if (base.Request.QueryString["id"] != null)
             {
                 string strId = base.Request.QueryString["id"];
                 dataTable = ExperProjectAction.GetSingleExpertInfo(strId);
             }
         }
         this.lblUnit.Text           = dataTable.Rows[0]["V_BMMC"].ToString();
         this.hdnmark.Value          = dataTable.Rows[0]["mark"].ToString();
         this.lblName.Text           = ((dataTable.Rows[0]["Prjname"] != DBNull.Value) ? dataTable.Rows[0]["Prjname"].ToString() : "");
         this.lblfangan.Text         = ((dataTable.Rows[0]["SchemeName"] != DBNull.Value) ? dataTable.Rows[0]["SchemeName"].ToString() : "");
         this.lblshenpi.Text         = ((dataTable.Rows[0]["examineapprove"] != DBNull.Value) ? dataTable.Rows[0]["examineapprove"].ToString() : "");
         this.lblpeople.Text         = com.jwsoft.pm.entpm.action.PageHelper.QueryUser(this, dataTable.Rows[0]["WeavePeople"].ToString());
         this.lblDate.Text           = Convert.ToDateTime(dataTable.Rows[0]["WeaveDate"].ToString()).ToShortDateString();
         this.lblTianPeople.Text     = com.jwsoft.pm.entpm.action.PageHelper.QueryUser(this, dataTable.Rows[0]["FillPeople"].ToString());
         this.lblTianDate.Text       = Convert.ToDateTime(dataTable.Rows[0]["FillDate"].ToString()).ToShortDateString();
         this.lblshuoming.Text       = dataTable.Rows[0]["schemebewrite"].ToString();
         this.lblRemark.Text         = dataTable.Rows[0]["Remark"].ToString();
         this.Literal1.Text          = FileView.FilesBind(1722, dataTable.Rows[0]["FlowGuid"].ToString());
         this.DDTClass.SelectedValue = dataTable.Rows[0]["filesType"].ToString();
         if (dataTable.Rows[0]["mark"].ToString().Equals("2"))
         {
             this.TrGDType.Attributes.Add("style", "display:none;");
         }
         else
         {
             this.TrGDType.Attributes.Add("style", "display:block;");
         }
         this.lblmarkType.Text = this.DDTClass.SelectedItem.Text.ToString();
     }
 }
Beispiel #5
0
    protected void BtnDel_Click(object sender, EventArgs e)
    {
        int num = ExperProjectAction.ExperDel(this.hfldConstruct.Value);

        if (num == 1)
        {
            base.RegisterScript("top.ui.show('删除成功');");
            this.PPMExpertBind();
            return;
        }
        if (num == 2)
        {
            base.RegisterScript("top.ui.alert('施工组织已经审核过,不能删除!'); ");
            return;
        }
        if (num == 0)
        {
            base.RegisterScript("top.ui.show('删除失败');");
        }
    }
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(this.TxtExperName.Text))
        {
            base.RegisterScript("top.ui.alert('方案名称不能为空');");
            return;
        }
        ExpertProjectInfo expertInfo = this.GetExpertInfo();
        int mark = 2;

        if (this.cbkmark.Checked)
        {
            mark = 3;
        }
        if (this._Type == "Add")
        {
            ExperProjectAction.ExperAdd(expertInfo);
            int num = this.coBll.UpdGuidang("Prj_ExpertSchemeManage", mark, Convert.ToInt32(this.DDTClass.SelectedValue.Trim()), " where MainID=" + expertInfo.ManiId);
            if (num == 1)
            {
                base.RegisterScript("top.ui.tabSuccess({ parentName: '_expertprojectquery' })");
                this.BtnSave.Enabled = false;
                return;
            }
            base.RegisterScript("top.ui.alert('保存失败');");
            return;
        }
        else
        {
            ExperProjectAction.ExperUpd(expertInfo, this._Id);
            int num = this.coBll.UpdGuidang("Prj_ExpertSchemeManage", mark, Convert.ToInt32(this.DDTClass.SelectedValue.Trim()), " where MainId=" + expertInfo.ManiId);
            if (num == 1)
            {
                base.RegisterScript("top.ui.tabSuccess({ parentName: '_expertprojectquery' })");
                return;
            }
            base.RegisterScript("top.ui.alert('保存失败');");
            return;
        }
    }
Beispiel #7
0
 private void GetPPMView(string Id)
 {
     if (this._Style == "PPM")
     {
         DataTable singleExpertInfo = ExperProjectAction.GetSingleExpertInfo(Id);
         this.TxtAuditPerson.Text = singleExpertInfo.Rows[0]["PPMExamineApprovePeople"].ToString();
         this.DateAuditTime.Text  = singleExpertInfo.Rows[0]["PPMExamineApproveDate"].ToString();
         if (singleExpertInfo.Rows[0]["PPMExamineApproveResult"].ToString().Trim() != "")
         {
             this.DDLAuditResult.SelectedValue = singleExpertInfo.Rows[0]["PPMExamineApproveResult"].ToString().Trim();
         }
         else
         {
             this.DDLAuditResult.SelectedItem.Text = "未通过审核";
         }
         this.TxtAuditIdea.Text = singleExpertInfo.Rows[0]["PPMExamineApproveIdea"].ToString();
         this.TxtRemark.Text    = singleExpertInfo.Rows[0]["PPMRemark"].ToString();
         return;
     }
     if (this._Style == "Ent")
     {
         DataTable singleExpertInfo2 = ExperProjectAction.GetSingleExpertInfo(Id);
         this.TxtAuditPerson.Text = singleExpertInfo2.Rows[0]["EntExamineApprovePeople"].ToString();
         this.DateAuditTime.Text  = singleExpertInfo2.Rows[0]["EntExamineApproveDate"].ToString();
         if (singleExpertInfo2.Rows[0]["EntExamineApproveResult"].ToString().Trim() != "")
         {
             this.DDLAuditResult.SelectedValue = singleExpertInfo2.Rows[0]["EntExamineApproveResult"].ToString().Trim();
         }
         else
         {
             this.DDLAuditResult.SelectedItem.Text = "未通过审核";
         }
         this.TxtAuditIdea.Text = singleExpertInfo2.Rows[0]["EntExamineApproveIdea"].ToString();
         this.TxtRemark.Text    = singleExpertInfo2.Rows[0]["EntRemark"].ToString();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true);
         this._Type                = base.Request.QueryString["Type"].ToString();
         this._PrjCode             = base.Request.QueryString["pc"].ToString();
         this._PrjName             = base.Request.QueryString["pn"].ToString();
         this._Id                  = base.Request.QueryString["Id"].ToString();
         this.ViewState["TYPE"]    = this._Type;
         this.ViewState["PRJCODE"] = this._PrjCode;
         this.ViewState["PRJNAME"] = this._PrjName;
         this.ViewState["ID"]      = this._Id;
         this.FileLink1.MID        = 1722;
         if (this._Type == "Upd")
         {
             this.FileLink1.Type = 1;
             this.GetExpertInfoOfUpd(this._Id);
             this.lb_change.Text = "修改";
             return;
         }
         if (this._Type == "Add")
         {
             this.TxtUnit.Text          = userManageDb.GetCurrentUserInfo().UserDepartName;
             this.HdnUnit.Value         = userManageDb.GetCurrentUserInfo().UserDepartCode;
             this.TxtPrjName.Text       = this._PrjName;
             this.DateWeaverTime.Text   = DateTime.Now.ToShortDateString();
             this.DateFillTime.Text     = DateTime.Now.ToShortDateString();
             this.TxtWeave.Text         = userManageDb.GetCurrentUserInfo().UserName;
             this.HdnWeaver.Value       = userManageDb.GetCurrentUserInfo().UserCode;
             this.TxtFillName.Text      = userManageDb.GetCurrentUserInfo().UserName;
             this.HdnFillName.Value     = userManageDb.GetCurrentUserInfo().UserCode;
             this.ViewState["RecordId"] = ExperProjectAction.GetMaxId().ToString();
             this._RecordId             = this.ViewState["RecordId"].ToString();
             this.hdnFlowGuid.Value     = Guid.NewGuid().ToString();
             this.FileLink1.FID         = this.hdnFlowGuid.Value.Trim();
             this.FileLink1.Type        = 1;
             this.lb_change.Text        = "新增";
             return;
         }
         if (this._Type == "View")
         {
             this.FileLink1.Type  = 0;
             this.BtnSave.Visible = false;
             this.SetControl();
             this.GetExpertInfoOfUpd(this._Id);
             this.lb_change.Text = "查看";
             this.BunClose.Value = "关 闭";
             return;
         }
     }
     else
     {
         this._Type    = this.ViewState["TYPE"].ToString();
         this._PrjCode = this.ViewState["PRJCODE"].ToString();
         if (this._Type == "Add")
         {
             this._PrjName  = this.ViewState["PRJNAME"].ToString();
             this._RecordId = this.ViewState["RecordId"].ToString();
             return;
         }
         this._Id = this.ViewState["ID"].ToString();
     }
 }