コード例 #1
0
 public void DisplayPart(PartData partData)
 {
     pnlPartHdr.Visible      = true;
     lblPartNum_out.Text     = partData.Part.PART_NUM;
     lblPartNumFull_out.Text = SQMModelMgr.GetFullPartNumber(partData.Part);
     lblPartName_out.Text    = partData.Part.PART_NAME;
     if (partData.Program != null)
     {
         lblPartProgram_out.Text = partData.Program.PROGRAM_NAME;
     }
 }
コード例 #2
0
        private void SetupPage()
        {
            ddlFormType.Items.AddRange(WebSiteCommon.PopulateDropDownListItems("COAForm", "long"));

            if (coaReport.BusOrg != null)
            {
                SetFindControlValue("lblParentBU_out", hfBase, coaReport.BusOrg.ORG_NAME);
                ddlPlant.DataSource     = coaReport.PlantList;
                ddlPlant.DataTextField  = "PLANT_NAME";
                ddlPlant.DataValueField = "PLANT_ID";
                ddlPlant.DataBind();
                ddlPlant.Items.Insert(0, new ListItem("", "0"));
            }

            if (coaReport.Part == null)
            {
                pnlPartDetail.Visible = pnlPartBOM.Visible = pnlCtlResult.Visible = false;
            }
            else
            {
                tbPartNumber.Text     = coaReport.Part.PART_NUM;
                pnlPartDetail.Visible = pnlPartBOM.Visible = pnlCtlResult.Visible = true;
                SetFindControlValue("lblPartNum_out", hfBase, coaReport.Part.PART_NUM);
                SetFindControlValue("lblPartNumFull_out", hfBase, SQMModelMgr.GetFullPartNumber(coaReport.Part));
                SetFindControlValue("lblPartName_out", hfBase, coaReport.Part.PART_NAME);
                SetFindControlValue("lblPartSerial_out", hfBase, coaReport.Part.SERIAL_NUM);
                SetFindControlValue("lblDrawing_out", hfBase, coaReport.Part.DRAWING_REF);
                SetFindControlValue("lblPartRevisionLevel_out", hfBase, coaReport.Part.REVISION_LEVEL);
                SetFindControlValue("lblPartStatus_out", hfBase, WebSiteCommon.GetStatusString(coaReport.Part.STATUS));

                GridView gv = (GridView)hfBase.FindControl("gvPartAssyList");
                gv.DataSource = coaReport.Part.PART_COMPONENT;
                gv.DataBind();
                gv.Columns[5].Visible = true;
                gv.Columns[4].Visible = false;
                SetGridViewDisplay(gv, (Label)hfBase.FindControl("lblPartAssyListEmpty"), (System.Web.UI.HtmlControls.HtmlGenericControl)hfBase.FindControl("divGVScrollBOM2"), 0);

                GridView gv2 = (GridView)hfBase.FindControl("gvPartProcList");
                gv2.DataSource = coaReport.Part.PART_PROCESS;
                gv2.DataBind();
                gv2.Columns[4].Visible = true;
                SetGridViewDisplay(gv2, (Label)hfBase.FindControl("lblPartProcListEmpty"), (System.Web.UI.HtmlControls.HtmlGenericControl)hfBase.FindControl("divGVScrollBOM1"), 0);

                DoCtlPlanSteps();
            }
        }
コード例 #3
0
        private void SetupPage()
        {
            PART part = (PART)SessionManager.Part;

            ctlPlan = CtlPlanMgr.LookupControlPlan(SessionManager.Part.PART_ID);
            if (ctlPlan != null)
            {
                // part summary area
                SetFindControlValue("lblCompany_out", hfBase, SessionManager.SessionContext.ActiveCompany().COMPANY_NAME);
                SetFindControlValue("lblPartNumFull_out", hfBase, SQMModelMgr.GetFullPartNumber(part));
                SetFindControlValue("lblPartName_out", hfBase, part.PART_NAME);

                SetFindControlValue("lblPlanName_out", hfBase, ctlPlan.CTLPLAN_NAME);
                SetFindControlValue("lblPlanVersion_out", hfBase, ctlPlan.VERSION);
                SetFindControlValue("lblPlanDesc_out", hfBase, ctlPlan.CTLPLAN_DESC);
                SetFindControlValue("lblPlanType_out", hfBase, WebSiteCommon.GetXlatValueLong("planType", ctlPlan.CTLPLAN_TYPE));
                SetFindControlValue("lblPlanRef_out", hfBase, ctlPlan.RTE_REF);
                SetFindControlValue("lblPlanResponsible_out", hfBase, ctlPlan.RESPONSIBILITY);
                SetFindControlValue("lblEffDate_out", hfBase, ctlPlan.EFF_DATE.ToString());

                DoCtlPlanSteps();
            }
        }