Ejemplo n.º 1
0
 private void cdvCustomer_ButtonPress(object sender, EventArgs e)
 {
     cdvCustomer.Init();
     cdvCustomer.Columns.Add("Group", 100);
     cdvCustomer.Columns.Add("Group Desc", 100);
     cdvCustomer.SelectedSubItemIndex = 0;
     RptListFunction.ViewGCMTableList(cdvCustomer.GetListView, GlobalVariable.gsAssyDefaultFactory, "H_CUSTOMER");
 }
Ejemplo n.º 2
0
        private void cdvLotType_ButtonPress(object sender, EventArgs e)
        {
            cdvLotType.Init();
            CmnInitFunction.InitListView(cdvLotType.GetListView);
            cdvLotType.Columns.Add("KEY_1", 30, HorizontalAlignment.Left);
            cdvLotType.Columns.Add("DATA_1", 70, HorizontalAlignment.Left);
            cdvLotType.SelectedSubItemIndex = 0;

            RptListFunction.ViewGCMTableList(cdvLotType.GetListView, cdvFactory.Text, "LOT_TYPE");
        }
Ejemplo n.º 3
0
        private void cdvMatGrpList_ButtonPress(object sender, EventArgs e)
        {
            if (cdvMatGrp.Text.TrimEnd() == "")
            {
                cdvMatGrpList.ListClear();
                return;
            }
            cdvMatGrpList.Init();
            CmnInitFunction.InitListView(cdvMatGrpList.GetListView);
            cdvMatGrpList.Columns.Add("KEY_1", 30, HorizontalAlignment.Left);
            cdvMatGrpList.Columns.Add("DATA_1", 70, HorizontalAlignment.Left);
            cdvMatGrpList.SelectedSubItemIndex = 0;

            string MatGrp = "";

            if (txtMatGrp.Text == "1")
            {
                MatGrp = "MATERIAL_GRP_1";
            }
            else if (txtMatGrp.Text == "2")
            {
                MatGrp = "MATERIAL_GRP_2";
            }
            else if (txtMatGrp.Text == "3")
            {
                MatGrp = "MATERIAL_GRP_3";
            }
            else if (txtMatGrp.Text == "4")
            {
                MatGrp = "MATERIAL_GRP_4";
            }
            else if (txtMatGrp.Text == "5")
            {
                MatGrp = "MATERIAL_GRP_5";
            }
            else if (txtMatGrp.Text == "6")
            {
                MatGrp = "MATERIAL_GRP_6";
            }
            else if (txtMatGrp.Text == "7")
            {
                MatGrp = "MATERIAL_GRP_7";
            }
            else if (txtMatGrp.Text == "8")
            {
                MatGrp = "MATERIAL_GRP_8";
            }
            else if (txtMatGrp.Text == "9")
            {
                MatGrp = "MATERIAL_GRP_9";
            }
            else if (txtMatGrp.Text == "10")
            {
                MatGrp = "MATERIAL_GRP_10";
            }
            else if (txtMatGrp.Text == "11")
            {
                MatGrp = "MATERIAL_GRP_11";
            }
            else if (txtMatGrp.Text == "12")
            {
                MatGrp = "MATERIAL_GRP_12";
            }
            else if (txtMatGrp.Text == "13")
            {
                MatGrp = "MATERIAL_GRP_13";
            }
            else if (txtMatGrp.Text == "14")
            {
                MatGrp = "MATERIAL_GRP_14";
            }
            else if (txtMatGrp.Text == "15")
            {
                MatGrp = "MATERIAL_GRP_15";
            }
            else if (txtMatGrp.Text == "16")
            {
                MatGrp = "MATERIAL_GRP_16";
            }
            else if (txtMatGrp.Text == "17")
            {
                MatGrp = "MATERIAL_GRP_17";
            }
            else if (txtMatGrp.Text == "18")
            {
                MatGrp = "MATERIAL_GRP_18";
            }
            else if (txtMatGrp.Text == "19")
            {
                MatGrp = "MATERIAL_GRP_19";
            }
            else if (txtMatGrp.Text == "20")
            {
                MatGrp = "MATERIAL_GRP_20";
            }

            RptListFunction.ViewGCMTableList(cdvMatGrpList.GetListView, cdvFactory.Text, MatGrp);
        }