Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!this.IsPostBack)
            {
                initLabel();

                this.CmbReturnStation.Type = "FATest";
                
                this.CmbReturnStation.Customer = Master.userInfo.Customer;
                station = Request["Station"]; //站号
                AccountId = Request["AccountId"];
                UserName = Request["UserName"];
                Login = Request["Login"];
                //this.pCode.Value = Request["PCode"];
                UserId = Master.userInfo.UserId;
                Customer = Master.userInfo.Customer;

                commServiceObj = ServiceAgent.getInstance().GetObjectByName<ITestStation>(WebConstant.CommonObject);
                //setFocus();
                iTestStation = (ITestStation)commServiceObj;
                refreshCmbReturnStation("");
                refreshCmbReturnStation("1");
            }
        }
        catch (FisException ex)
        {
            writeToAlertMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            writeToAlertMessage(ex.Message);
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!this.IsPostBack)
            {
                initLabel();
                bindTable(null, DEFAULT_ROWS, null);
                setColumnWidth();
                //CmbPdLine.Station = Request["Station"];
                CmbPdLine.Station = Request["Station"];
                //CmbPdLine.Stage = "FA";
                CmbPdLine.Customer = Master.userInfo.Customer;              
                UserId = Master.userInfo.UserId;
                Customer = Master.userInfo.Customer;
                refreshCmbReturnStation(null, "0");
            }

            repairServiceObj = ServiceAgent.getInstance().GetObjectByName<IFARepair>(WebConstant.FARepairObject);
            commServiceObj = ServiceAgent.getInstance().GetObjectByName<IRepair>(WebConstant.CommonObject);

            iFARepair = (IFARepair)repairServiceObj;
            iRepairLog = (IRepair)commServiceObj;
            iProduct = (IProduct)commServiceObj;
            iTestStation = (ITestStation)commServiceObj;
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
            bindTable(null, DEFAULT_ROWS, null);
            this.hidRecordCount.Value = "0";
            refreshCmbReturnStation(null, "0");
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
            bindTable(null, DEFAULT_ROWS, null);
            this.hidRecordCount.Value = "0";
            refreshCmbReturnStation(null, "0");
        }
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            //2012-4-16
            UserId = Master.userInfo.UserId;
            Customer = Master.userInfo.Customer;

            if (!this.IsPostBack)
            {
                initLabel();
                bindTable(null, 12);
                setColumnWidth();            
                CmbPdLine.Station = Request["station"];
                //CmbPdLine.Station = "75";//Dean Test 20110312
                
                CmbPdLine.Customer = Master.userInfo.Customer;
                /*
                UserId = Master.userInfo.UserId;
                Customer = Master.userInfo.Customer;
                 */

                //2012-8-1, Jessica Liu, 需求变更:增加Return Station 计算逻辑, 修改解DN条件
                refreshCmbReturnStation(null, "0");
            }

            repairServiceObj = ServiceAgent.getInstance().GetObjectByName<IPAQCRepairForDocking>(repairBllName);
            commServiceObj = ServiceAgent.getInstance().GetObjectByName<IRepair>(commBllName);

            iPAQCRepair = (IPAQCRepairForDocking)repairServiceObj;
            iRepairLog = (IRepair)commServiceObj;
            iProduct = (IProduct)commServiceObj;
            iTestStation = (ITestStation)commServiceObj;
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
            bindTable(null, DEFAULT_ROWS);
            this.hidRecordCount.Value = "0";
            //2012-8-1, Jessica Liu, 需求变更:增加Return Station 计算逻辑, 修改解DN条件
            refreshCmbReturnStation(null, "0");
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
            bindTable(null, DEFAULT_ROWS);
            this.hidRecordCount.Value = "0";
            //2012-8-1, Jessica Liu, 需求变更:增加Return Station 计算逻辑, 修改解DN条件
            refreshCmbReturnStation(null, "0");
        }
    }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            iDefect = ServiceAgent.getInstance().GetObjectByName<IDefect>(WebConstant.CommonObject);
            iTestStation = ServiceAgent.getInstance().GetObjectByName<ITestStation>(WebConstant.CommonObject);
            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(width) > 100)
                    {
                        this.drpReturnStation.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpReturnStation.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpReturnStation.Width = Unit.Parse(width);
                }

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

                if (enabled)
                {
                    initReturnStation();
                }
                else
                {
                    this.drpReturnStation.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            showCmbErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showCmbErrorMessage(ex.Message);
        }
    }