コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            iSelectData = (IRepairInfoMaintain)ServiceAgent.getInstance().GetMaintainObjectByName<IRepairInfoMaintain>(WebConstant.REPAIRINFOMAINTAIN);
            //ServiceAgent.getInstance().GetMaintainObjectByName<IDefectStation>(WebConstant.MaintainCauseStationObject);
            string Causetype = "FACause";

            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(width) > 100)
                    {
                        drpMaintainCause.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpMaintainCause.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpMaintainCause.Width = Unit.Parse(width);
                }

                this.drpMaintainCause.CssClass = cssClass;
                this.drpMaintainCause.Enabled = enabled;

                if (enabled)
                {
                    initMaintainDefectCause(Causetype);
                }
                else
                {
                    this.drpMaintainCause.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            //showCmbErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            //showCmbErrorMessage(ex.Message);
        }
    }
コード例 #2
0
ファイル: DefectStation.aspx.cs プロジェクト: wra222/testgit
    protected void Page_Load(object sender, EventArgs e)
    {
        iSelectData = (IRepairInfoMaintain)ServiceAgent.getInstance().GetMaintainObjectByName<IRepairInfoMaintain>(WebConstant.REPAIRINFOMAINTAIN);
        iDefectStation = (IDefectStation)ServiceAgent.getInstance().GetMaintainObjectByName<IACAdaptor>(WebConstant.MaintainDefectStationObject);
        MsgSelectOne = this.GetLocalResourceObject(Pre + "_MsgSelectOne").ToString();
        MsgDelConfirm = this.GetLocalResourceObject(Pre + "_MsgDelConfirm").ToString();
        MsgPreWC = this.GetLocalResourceObject(Pre + "_MsgPreWC").ToString();
        MsgCurWC = this.GetLocalResourceObject(Pre + "_MsgCurWC").ToString();
        MsgNextWC = this.GetLocalResourceObject(Pre + "_MsgNextWC").ToString();
        MsgDefectSel = this.GetLocalResourceObject(Pre + "_MsgDefectSel").ToString();
        MsgCauseSel = this.GetLocalResourceObject(Pre + "_MsgCauseSel").ToString();
        MsgNotFound = this.GetLocalResourceObject(Pre + "_MsgNotFound").ToString();
        if(!IsPostBack)
        {
            
            
            userName = Master.userInfo.UserId;
            this.HiddenUserName.Value = userName;
            List<DefectCodeStationInfo> defectLst = null;
            initLabel();
            try
            {
                initSelect();
                //defectLst = (List<DefectCodeStationInfo>)iDefectStation.GetDefectList();
            }
            catch (FisException fe)
            {
                showErrorMessage(fe.mErrmsg);
                return;
            }
            catch(Exception ee)
            {
                showErrorMessage(ee.Message);
                return;
            }

            //bindTable(defectLst, DEFAULT_ROWS);
            bindTable(null, DEFAULT_ROWS);
        }

    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        irpairInfo = (IRepairInfoMaintain)ServiceAgent.getInstance().GetMaintainObjectByName<IRepairInfoMaintain>(WebConstant.REPAIRINFOMAINTAIN);
        if (!IsPostBack)
        {
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
            pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
            pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
            pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
            pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString();
            pmtMessage11 = this.GetLocalResourceObject(Pre + "_pmtMessage11").ToString();

            userName = Master.userInfo.UserId;
            this.HiddenUserName.Value = userName;
            List<RepairInfoMaintainDef> dataLst = null;
            initLabel();
            ScriptManager.RegisterStartupScript(this.updatePanel, typeof(System.Object), "initConditionData", "initConditionData();", true);
        }
    //    ScriptManager.RegisterStartupScript(this.updatePanel, typeof(System.Object), "InitControl", "initContorls();", true);
    }