void _tableview_DetailsRowEnvent(string id)
        {
            string dept_id;
            string flag_tier;

            DataRow[] rows = currenttable.Select("PART_NAME = '" + id + "'");
            dept_id   = rows[0]["PART_ID"].ToString();
            flag_tier = rows[0]["flagtier"].ToString();

            if (flag_tier == "4")
            {
                UcTaskReportDetails daydetails = new UcTaskReportDetails(dbOperation, Sj, dept_id, ItemId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }
            else
            {
                UcTaskReportCountry daydetails = new UcTaskReportCountry(dbOperation, Sj, dept_id, ItemId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }
        }
예제 #2
0
        void _tableview_DetailsRowEnvent(string id)
        {
            string dept_id;
            string flag_tier;

            DataRow[] rows = currenttable.Select("PART_NAME = '" + id + "'");
            dept_id   = rows[0]["PART_ID"].ToString();
            flag_tier = rows[0]["flagtier"].ToString();

            if (flag_tier == "4")
            {
                switch (DeptType)
                {
                case "0": UcTaskReportDetailsProduce daydetails = new UcTaskReportDetailsProduce(Sj, dept_id, ItemId);
                    daydetails.SetValue(Grid.RowProperty, 0);
                    daydetails.SetValue(Grid.RowSpanProperty, 2);
                    grid_info.Children.Add(daydetails);
                    break;

                case "1": UcTaskReportDetailsFishery daydetails_fishery = new UcTaskReportDetailsFishery(Sj, dept_id, ItemId);
                    daydetails_fishery.SetValue(Grid.RowProperty, 0);
                    daydetails_fishery.SetValue(Grid.RowSpanProperty, 2);
                    grid_info.Children.Add(daydetails_fishery);
                    break;

                case "2": UcTaskReportDetailsAnimal daydetails_animal = new UcTaskReportDetailsAnimal(Sj, dept_id, ItemId);
                    daydetails_animal.SetValue(Grid.RowProperty, 0);
                    daydetails_animal.SetValue(Grid.RowSpanProperty, 2);
                    grid_info.Children.Add(daydetails_animal);
                    break;

                default: break;
                }
            }
            else
            {
                UcTaskReportCountry daydetails = new UcTaskReportCountry(Sj, dept_id, ItemId, DeptType);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }
        }
        void _tableview_DetailsRowEnvent(string id)
        {
            string dept_id;
            string flag_tier;

            DataRow[] rows = currenttable.Select("PART_NAME = '" + id + "'");
            dept_id = rows[0]["PART_ID"].ToString();
            flag_tier = rows[0]["flagtier"].ToString();

            if (flag_tier == "4")
            {
                UcTaskReportDetails daydetails = new UcTaskReportDetails(dbOperation, Sj, dept_id, ItemId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }
            else
            {
                UcTaskReportCountry daydetails = new UcTaskReportCountry(dbOperation, Sj, dept_id, ItemId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }


        }
예제 #4
0
        void _tableview_DetailsRowEnvent(string id)
        {
            string dept_id;
            string flag_tier;

            DataRow[] rows = currenttable.Select("PART_NAME = '" + id + "'");
            dept_id = rows[0]["PART_ID"].ToString();
            flag_tier = rows[0]["flagtier"].ToString();

            if (flag_tier == "4")
            {
                switch (DeptType)
                {
                    case "0": UcTaskReportDetailsSc daydetails = new UcTaskReportDetailsSc(dbOperation, Sj, dept_id, ItemId);
                        daydetails.SetValue(Grid.RowProperty, 0);
                        daydetails.SetValue(Grid.RowSpanProperty, 2);
                        grid_info.Children.Add(daydetails);
                        break;
                    case "1":
                    case "2":
                    case "3":
                    default: break;
                }
            }
            else
            {
                UcTaskReportCountry daydetails = new UcTaskReportCountry(dbOperation, Sj, dept_id, ItemId, DeptType);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

                grid_info.Children.Add(daydetails);
            }


        }