Ejemplo n.º 1
0
 private void GetPPMView(string Id)
 {
     if (this._Style == "PPM")
     {
         DataTable singleConOrgInfo = ConstructOrganizeAction.GetSingleConOrgInfo(Id);
         this.TxtAuditPerson.Text = singleConOrgInfo.Rows[0]["PPMAuditPerson"].ToString();
         this.DateAuditTime.Text  = singleConOrgInfo.Rows[0]["PPMAuditTime"].ToString();
         if (singleConOrgInfo.Rows[0]["PPMAuditResult"].ToString().Trim() != "")
         {
             this.DDLAuditResult.SelectedValue   = singleConOrgInfo.Rows[0]["PPMAuditResult"].ToString().Trim();
             this.RadioButtonList1.SelectedValue = singleConOrgInfo.Rows[0]["PPMAuditResult"].ToString().Trim();
         }
         else
         {
             this.DDLAuditResult.SelectedItem.Text = "未审核";
         }
         this.TxtAuditIdea.Text = singleConOrgInfo.Rows[0]["PPMAuditIdea"].ToString();
         this.TxtRemark.Text    = singleConOrgInfo.Rows[0]["PPMAuditRemark"].ToString();
     }
     else
     {
         if (this._Style == "Ent")
         {
             DataTable singleConOrgInfo2 = ConstructOrganizeAction.GetSingleConOrgInfo(Id);
             this.TxtAuditPerson.Text = singleConOrgInfo2.Rows[0]["EntAuditPerson"].ToString();
             this.DateAuditTime.Text  = singleConOrgInfo2.Rows[0]["EntAuditTime"].ToString();
             if (singleConOrgInfo2.Rows[0]["EntAuditResult"].ToString().Trim() != "")
             {
                 this.DDLAuditResult.SelectedValue   = singleConOrgInfo2.Rows[0]["EntAuditResult"].ToString().Trim();
                 this.RadioButtonList1.SelectedValue = singleConOrgInfo2.Rows[0]["EntAuditResult"].ToString().Trim();
             }
             else
             {
                 this.DDLAuditResult.SelectedItem.Text = "未审核";
             }
             this.TxtAuditIdea.Text = singleConOrgInfo2.Rows[0]["EntAuditIdea"].ToString();
             this.TxtRemark.Text    = singleConOrgInfo2.Rows[0]["EntAuditRemark"].ToString();
         }
     }
     this.TxtAuditPerson.Enabled = false;
     this.DateAuditTime.Enabled  = false;
     this.DDLAuditResult.Enabled = false;
     this.TxtAuditIdea.Enabled   = false;
     this.TxtRemark.Enabled      = false;
 }
Ejemplo n.º 2
0
    private void GetConOrgInfoOfUpd(string Id)
    {
        DataTable singleConOrgInfo = ConstructOrganizeAction.GetSingleConOrgInfo(Id);

        this.TxtUnit.Text           = singleConOrgInfo.Rows[0]["FillUnit"].ToString();
        this.TxtPrjName.Text        = ((singleConOrgInfo.Rows[0]["TCO_Name"] != DBNull.Value) ? singleConOrgInfo.Rows[0]["TCO_Name"].ToString() : "");
        this.TxtWeave.Value         = singleConOrgInfo.Rows[0]["WeavePerson"].ToString();
        this.DateWeave.Text         = Convert.ToDateTime(singleConOrgInfo.Rows[0]["WeaveTime"].ToString()).ToShortDateString();
        this.TxtScript.Text         = singleConOrgInfo.Rows[0]["Maindescripe"].ToString();
        this.TxtRemark.Text         = singleConOrgInfo.Rows[0]["Remark"].ToString();
        this.DDTClass.SelectedValue = singleConOrgInfo.Rows[0]["filesType"].ToString();
        this.hdnFlowGuid.Value      = singleConOrgInfo.Rows[0]["FlowGuid"].ToString();
        if (singleConOrgInfo.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;");
    }
Ejemplo n.º 3
0
 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_ScienceInnovate", new Guid(g));
         }
         else
         {
             if (base.Request.QueryString["id"] != null)
             {
                 string strId = base.Request.QueryString["id"];
                 dataTable = ConstructOrganizeAction.GetSingleConOrgInfo(strId);
             }
         }
         this.lblUnit.Text           = dataTable.Rows[0]["FillUnit"].ToString();
         this.hdnmark.Value          = dataTable.Rows[0]["mark"].ToString();
         this.lblName.Text           = ((dataTable.Rows[0]["TCO_Name"] != DBNull.Value) ? dataTable.Rows[0]["TCO_Name"].ToString() : "");
         this.lblpeople.Text         = dataTable.Rows[0]["WeavePerson"].ToString();
         this.lblDate.Text           = Convert.ToDateTime(dataTable.Rows[0]["WeaveTime"].ToString()).ToShortDateString();
         this.lblshuoming.Text       = dataTable.Rows[0]["Maindescripe"].ToString();
         this.lblRemark.Text         = dataTable.Rows[0]["Remark"].ToString();
         this.Literal1.Text          = FileView.FilesBind(1720, 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();
     }
 }