Ejemplo n.º 1
0
    private void loadWorkRequest()
    {
        DataTable dt = WorkRequest.WorkRequest_Get(workRequestID: this.WorkRequestID);

        if (dt != null && dt.Rows.Count > 0)
        {
            DataRow  row  = dt.Rows[0];
            ListItem item = null;

            this.spanWorkRequestNumber.InnerText = row["WORKREQUESTID"].ToString();
            this.txtTitle.Text = row["TITLE"].ToString();

            WTSUtility.SelectDdlItem(ddlContract, row["CONTRACTID"].ToString(), row["CONTRACT"].ToString());
            WTSUtility.SelectDdlItem(ddlOrganization, row["ORGANIZATIONID"].ToString(), row["ORGANIZATION"].ToString());

            textAreaDescription.InnerHtml = row["DESCRIPTION"].ToString();

            WTSUtility.SelectDdlItem(ddlRequestType, row["REQUESTTYPEID"].ToString(), row["REQUESTTYPE"].ToString());
            WTSUtility.SelectDdlItem(ddlRequestGroup, row["RequestGroupID"].ToString(), row["RequestGroup"].ToString());
            WTSUtility.SelectDdlItem(ddlScope, row["WTS_SCOPEID"].ToString(), row["SCOPE"].ToString());
            WTSUtility.SelectDdlItem(ddlEffort, row["EFFORTID"].ToString(), row["EFFORT"].ToString());
            WTSUtility.SelectDdlItem(ddlSubmittedBy, row["SUBMITTEDBY"].ToString(), row["Submitted_Name"].ToString());
            WTSUtility.SelectDdlItem(ddlSME, row["SMEID"].ToString(), row["SME"].ToString());
            WTSUtility.SelectDdlItem(ddlLead_IA_TW, row["LEAD_IA_TWID"].ToString(), row["Lead_IA_TW"].ToString());
            WTSUtility.SelectDdlItem(ddlLeadResource, row["LEAD_RESOURCEID"].ToString(), row["Lead_Resource"].ToString());
            WTSUtility.SelectDdlItem(ddlPriority, row["OP_PRIORITYID"].ToString(), row["PRIORITY"].ToString());

            textAreaJustification.InnerHtml = row["JUSTIFICATION"].ToString();

            this.labelCreated.Text = row["CREATEDBY"].ToString() + " - " + row["CREATEDDATE"].ToString();
            this.labelUpdated.Text = row["UPDATEDBY"].ToString() + " - " + row["UPDATEDDATE"].ToString();
        }
    }
    private void loadWorkRequest()
    {
        DataTable dt = WorkRequest.WorkRequest_Get(workRequestID: this.WorkRequestID);

        if (dt != null && dt.Rows.Count > 0)
        {
            this.labelWorkRequestNumber.InnerText = dt.Rows[0]["WORKREQUESTID"].ToString();
        }
    }