Example #1
0
    protected void btnSaveClose_Click(object sender, EventArgs e)
    {
        //string result = CRUD.FilmCheckOut(ViewState["originalLot"].ToString(), "", ddlEqp.SelectedValue, ddlWorkshop.SelectedValue,
        //                    lblWorksiteID.Text,
        //                    System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
        //                    ddlFilmLevel.SelectedValue);
        //string resultLevel = "";
        //if (cbxUpdateLevel.Checked == true)
        //{
        //    resultLevel = CRUD.updateFilmLevel(txtFilmLevel.Text,
        //                                              ddlFilmLevel.SelectedValue,
        //                                              ViewState["originalLot"].ToString(),
        //                                              System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
        //                                              lblWorksiteID.Text
        //                                              );
        //}
        string strCheck     = ""; //存放检验结果变量
        string strFilmLevel = ""; //模具等级变量
        string result       = CRUD.FilmCheckOut(ViewState["originalLot"].ToString(), "", ddlEqp.SelectedValue, ddlWorkshop.SelectedValue,
                                                lblWorksiteID.Text,
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                ddlFilmLevel.SelectedValue);
        string resultLevel = "";

        if (cbxUpdateLevel.Checked == true)//膜检验结果为NG
        {
            strCheck     = "NG";
            strFilmLevel = ddlFilmLevel.SelectedValue;
            resultLevel  = CRUD.updateFilmLevel(txtFilmLevel.Text,
                                                ddlFilmLevel.SelectedValue,
                                                ViewState["originalLot"].ToString(),
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                lblWorksiteID.Text
                                                );
        }
        else
        {
            strCheck     = "OK";
            strFilmLevel = txtFilmLevel.Text;
        }
        #region//检验项目=====================================================================================
        AGCoatingQCDatalist Datalist = new AGCoatingQCDatalist();
        //厚度
        Datalist.thinknessleft   = txtThinknessLeft.Text;
        Datalist.thinknessmiddle = txtThinknessMiddle.Text;
        Datalist.thinknessright  = txtThinknessRight.Text;
        Datalist.thinknessresult = ddlThinknessResult.SelectedValue;
        //翘曲变形
        Datalist.buckling       = txtBuckling.Text;
        Datalist.bucklingresult = ddlBucklingResult.SelectedValue;
        //MD雾度
        Datalist.MDhaze       = txtMDHaze.Text;
        Datalist.MDhazeresult = ddlMDHazeResult.SelectedValue;
        //MD厚度
        Datalist.MDpenetration       = txtPenetrance.Text;
        Datalist.MDpenetrationresult = ddlPenetranceResult.SelectedValue;
        //外观
        //1外观左
        Datalist.appearanceleft = txtAppearanceLeft.Text;
        //2外观右
        Datalist.appearanceright  = txtAppearanceRight.Text;
        Datalist.appearanceresult = ddlAppearanceResult.SelectedValue;
        //可用宽幅
        Datalist.availablewidth       = txtAvailableWidth.Text;
        Datalist.availablewidthresult = ddlAvailableWidthResult.SelectedValue;
        //纹路
        Datalist.lines       = txtLines.Text;
        Datalist.linesresult = ddlLinesResult.Text;
        ////粒子
        ////1粒子密度
        //Datalist.ParticleDensity = txtParticleDensity.Text;
        ////2粒子高度
        //Datalist.particleheight = txtParticleHeight.Text;
        //Datalist.particleresult = ddlParticleResult.SelectedValue;
        //百格
        Datalist.baige       = txtBaige.Text;
        Datalist.baigeresult = ddlBaigeResult.SelectedValue;
        //铅笔硬度
        Datalist.pencilhardness       = txtPencilHardness.Text;
        Datalist.pencilhardnessresult = ddlPenetranceResult.SelectedValue;

        string QCResult = UVBackCheck.CheckInfo(txtLot.Text,
                                                ddlEqp.SelectedValue,
                                                lblWorksiteID.Text,
                                                strCheck,
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                strFilmLevel,
                                                Datalist
                                                );
        if (QCResult == "fail")
        {
            JScript.Alert("记录检验项目失败", this);
            return;
        }
        #endregion

        if (result == "success" && resultLevel != "fail")
        {
            //JScript.Alert("UV成型检验过站成功!", this);
            JScript.AlertAndRedirect("UV背涂检验过站成功!", "UVBackCheck.aspx", this);
            //ClearInfo();
            return;
        }
        else
        {
            JScript.Alert("UV背涂检验过站失败!", this);
            return;
        }
    }
Example #2
0
    protected void btnSaveClose_Click(object sender, EventArgs e)
    {
        //string result = CRUD.FilmCheckOut(ViewState["originalLot"].ToString(), txtLot.Text, ddlEqp.SelectedValue, ddlWorkshop.SelectedValue,
        //                    lblWorksiteID.Text,
        //                    System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
        //                    ddlFilmLevel.SelectedValue);
        //string resultLevel = "";
        //if (cbxUpdateLevel.Checked == true)
        //{
        //    resultLevel = CRUD.updateFilmLevel(txtFilmLevel.Text,
        //                                              ddlFilmLevel.SelectedValue,
        //                                              ViewState["originalLot"].ToString(),
        //                                              System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
        //                                              lblWorksiteID.Text
        //                                              );
        //}
        string strCheck     = ""; //存放检验结果变量
        string strFilmLevel = ""; //模具等级变量
        string result       = CRUD.FilmCheckOut(ViewState["originalLot"].ToString(), txtLot.Text, ddlEqp.SelectedValue, ddlWorkshop.SelectedValue,
                                                lblWorksiteID.Text,
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                ddlFilmLevel.SelectedValue);
        string resultLevel = "";

        if (cbxUpdateLevel.Checked == true)//膜检验结果为NG
        {
            strCheck     = "NG";
            strFilmLevel = ddlFilmLevel.SelectedValue;
            resultLevel  = CRUD.updateFilmLevel(txtFilmLevel.Text,
                                                ddlFilmLevel.SelectedValue,
                                                ViewState["originalLot"].ToString(),
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                lblWorksiteID.Text
                                                );
        }
        else
        {
            strCheck     = "OK";
            strFilmLevel = txtFilmLevel.Text;
        }
        #region//检验项目=====================================================================================
        AGCoatingQCDatalist Datalist = new AGCoatingQCDatalist();

        //外观
        //1外观左
        Datalist.appearanceleft = txtAppearanceLeft.Text;
        //2外观右
        Datalist.appearanceright  = txtAppearanceRight.Text;
        Datalist.appearanceresult = ddlAppearanceResult.SelectedValue;


        string QCResult = UVBackCheck.CheckInfo(txtLot.Text,
                                                ddlEqp.SelectedValue,
                                                lblWorksiteID.Text,
                                                strCheck,
                                                System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(),
                                                strFilmLevel,
                                                Datalist
                                                );
        if (QCResult == "fail")
        {
            JScript.Alert("记录检验项目失败", this);
            return;
        }
        #endregion
        if (result == "success" && resultLevel != "fail")
        {
            //JScript.Alert("UV成型检验过站成功!", this);
            JScript.AlertAndRedirect("分条检验过站成功!", "SubsectionCheck.aspx", this);
            //ClearInfo();
            return;
        }
        else
        {
            JScript.Alert("分条检验过站失败!", this);
            return;
        }
    }