Ejemplo n.º 1
0
    private void DoBinding_ETC()
    {
        MicroBSC.Integration.COM.Biz.Biz_NHIT bizNHIT = new MicroBSC.Integration.COM.Biz.Biz_NHIT();
        DataTable dtNHIT_B = bizNHIT.GetEtc(GRP_ONE_ID.B.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , TG_GUBUN);

        UltraWebGrid3.DataSource = dtNHIT_B;
        UltraWebGrid3.DataBind();

        DataTable dtNHIT_C = bizNHIT.GetEtc(GRP_ONE_ID.C.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , TG_GUBUN);

        UltraWebGrid4.DataSource = dtNHIT_C;
        UltraWebGrid4.DataBind();

        DataTable dtNHIT_D = bizNHIT.GetEtc(GRP_ONE_ID.D.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , TG_GUBUN);

        UltraWebGrid5.DataSource = dtNHIT_D;
        UltraWebGrid5.DataBind();
    }
Ejemplo n.º 2
0
    private void DoBinding_ETC()
    {
        MicroBSC.Integration.COM.Biz.Biz_NHIT bizNHIT = new MicroBSC.Integration.COM.Biz.Biz_NHIT();
        DataTable dtNHIT_B = bizNHIT.GetEtc(GRP_ONE_ID.B.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , "T");

        UltraWebGrid3.DataSource = dtNHIT_B;
        UltraWebGrid3.DataBind();
        DoDrawingEtcChart(dtNHIT_B, chart3, 4);


        DataTable dtNHIT_C = bizNHIT.GetEtc(GRP_ONE_ID.C.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , "T");

        UltraWebGrid4.DataSource = dtNHIT_C;
        UltraWebGrid4.DataBind();
        DoDrawingEtcChart(dtNHIT_C, chart4, 17);


        DataTable dtNHIT_D = bizNHIT.GetEtc(GRP_ONE_ID.D.ToString()
                                            , CR_YEAR
                                            , CR_MONTH
                                            , "T");



        UltraWebGrid5.DataSource = dtNHIT_D;
        UltraWebGrid5.DataBind();
        DoDrawingEtcChart(dtNHIT_D, chart5, 13);
    }
        protected void llenarvacio()
        {
            UltraWebGrid4.ResetColumns();
            UltraWebGrid4.DataBind();
            UltraWebGrid4.Columns.Add("Zona");
            UltraWebGrid4.Columns.Add("Defecto");
            UltraWebGrid4.Columns.Add("Acción Defecto");

            UltraWebGrid4.Columns[0].Header.Caption = "Zona";
            UltraWebGrid4.Columns[1].Header.Caption = "Defecto";
            UltraWebGrid4.Columns[2].Header.Caption = "Acción Defecto";


            UltraWebGrid4.Columns[0].Header.Style.HorizontalAlign = HorizontalAlign.Center;
            UltraWebGrid4.Columns[1].Header.Style.HorizontalAlign = HorizontalAlign.Center;
            UltraWebGrid4.Columns[2].Header.Style.HorizontalAlign = HorizontalAlign.Center;
        }
        protected void LlenarDefectos(object sender, EventArgs e)
        {
            /* llenargrid();*/



            llenarvacio(); svcSCPP.SCPPClient svc = new svcSCPP.SCPPClient();

            /*  List<Common.SolutionEntityFramework.BaseSolutionEntity> Lista2 = svc.ObtenerKardexProducto(int.Parse(TextCodPieza.Text));
             * UltraWebGrid1.DataSource = Lista2;
             * BE.KardexProducto kp = Lista2[0] as BE.KardexProducto;
             * CodPiezaTransaccion.Value = kp.CodPiezaTransaccion.ToString();*/


            List <Common.SolutionEntityFramework.BaseSolutionEntity> Lista = svc.ObtenerKardexProductoDefecto(int.Parse(TextCodPieza.Text));

            UltraWebGrid4.DataSource = Lista;
            if (Lista.Count <= 0)
            {
                llenarvacio();
            }
            else
            {
                UltraWebGrid4.ResetColumns();
                UltraWebGrid4.DataBind();

                UltraWebGrid4.Columns[0].Header.Caption = "Zona";
                UltraWebGrid4.Columns[1].Header.Caption = "Defecto";
                UltraWebGrid4.Columns[2].Header.Caption = "Acción Defecto";
                UltraWebGrid4.Columns[3].Hidden         = true;


                UltraWebGrid4.Columns[0].Width = 180;
                UltraWebGrid4.Columns[1].Width = 180;
                UltraWebGrid4.Columns[2].Width = 160;

                UltraWebGrid4.DataBind();
            }
        }
Ejemplo n.º 5
0
    private void SetGrid4()
    {
        UltraWebGrid4.Clear();

        MicroBSC.Integration.BSC.Biz.Biz_Bsc_Intro_Score bizObj = new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Intro_Score();

        DataTable dtObj = bizObj.GetOrgRankBonbu(IEstTermRefID, IYmd, "4", "TS");

        if (dtObj.Rows.Count > 0)
        {
            UltraWebGrid4.DataSource = dtObj;
            UltraWebGrid4.DataBind();

            UltraWebGrid4.Rows[0].Activate();
            UltraWebGrid4.Rows[0].Selected = true;

            string ESTTERM_REF_ID  = DataTypeUtility.GetValue(UltraWebGrid4.Rows[0].Cells.FromKey("ESTTERM_REF_ID").Value);
            string YMD             = DataTypeUtility.GetValue(UltraWebGrid4.Rows[0].Cells.FromKey("YMD").Value);
            string EST_DEPT_REF_ID = DataTypeUtility.GetValue(UltraWebGrid4.Rows[0].Cells.FromKey("EST_DEPT_REF_ID").Value);
            string bonbu_name      = DataTypeUtility.GetValue(UltraWebGrid4.Rows[0].Cells.FromKey("DEPT_NAME").Value).ToString();
            SetGrid5(DataTypeUtility.GetToInt32(ESTTERM_REF_ID), YMD, EST_DEPT_REF_ID, bonbu_name);
        }
    }