Beispiel #1
0
        void _tableview_DetailsRowEnvent(string id)
        {
            string dept_id;

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


            if (user_flag_tier == "2")
            {
                UcMonthReportDetails daydetails = new UcMonthReportDetails(dbOperation, Sj, dept_id, ItemId, ResultId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

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

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

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

           
            if (user_flag_tier == "2")
            {
                UcMonthReportDetails daydetails = new UcMonthReportDetails(dbOperation, Sj, dept_id, ItemId, ResultId);
                daydetails.SetValue(Grid.RowProperty, 0);
                daydetails.SetValue(Grid.RowSpanProperty, 2);

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

                grid_info.Children.Add(daydetails);
            } 

        }