Ejemplo n.º 1
0
        private void OrderDetailBtn_Click(object sender, RoutedEventArgs e)
        {
            //Button DetailBtn = sender as Button;
            //T_OA_ORDERMEAL Orderinfo = DetailBtn.Tag as T_OA_ORDERMEAL;
            //OrderMealDetailInfo AddWin = new OrderMealDetailInfo(Orderinfo);
            //AddWin.Show();
            T_OA_ORDERMEAL MeetingInfoT = new T_OA_ORDERMEAL();

            if (DaGr.ItemsSource != null)
            {
                foreach (object obj in DaGr.ItemsSource)
                {
                    if (DaGr.Columns[0].GetCellContent(obj) != null)
                    {
                        CheckBox cb1 = DaGr.Columns[0].GetCellContent(obj).FindName("myChkBox") as CheckBox; //cb为
                        if (cb1.IsChecked == true)
                        {
                            //MeetingInfoId = cb1.Tag.ToString();
                            MeetingInfoT = cb1.Tag as T_OA_ORDERMEAL;
                            break;
                        }
                    }
                }
            }

            if (!string.IsNullOrEmpty(MeetingInfoT.ORDERMEALID))
            {
                OrderMealDetailInfo AddWin  = new OrderMealDetailInfo(MeetingInfoT);
                EntityBrowser       browser = new EntityBrowser(AddWin);
                browser.MinWidth         = 260;
                browser.MinHeight        = 400;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });


                //OrderMealDetailInfo AddWin = new OrderMealDetailInfo(MeetingInfoT);
                ////MeetingMangementDetailInfo AddWin = new MeetingMangementDetailInfo(MeetingInfoT);
                //AddWin.Show();
            }
            else
            {
                //MessageBox.Show("请选择需要修改的会议信息");
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }
        }
Ejemplo n.º 2
0
        //查看
        private void btnRead_Click(object sender, RoutedEventArgs e)
        {
            T_OA_ORDERMEAL EditOrderMealInfoT = new T_OA_ORDERMEAL();

            if (DaGr.ItemsSource != null)
            {
                foreach (object obj in DaGr.ItemsSource)
                {
                    if (DaGr.Columns[0].GetCellContent(obj) != null)
                    {
                        CheckBox cb1 = DaGr.Columns[0].GetCellContent(obj).FindName("myChkBtn") as CheckBox; //cb为
                        if (cb1.IsChecked == true)
                        {
                            //MeetingInfoId = cb1.Tag.ToString();
                            EditOrderMealInfoT = cb1.Tag as T_OA_ORDERMEAL;
                            break;
                        }
                    }
                }
            }
            if (!string.IsNullOrEmpty(EditOrderMealInfoT.ORDERMEALID))
            {
                OrderMealDetailInfo AddWin  = new OrderMealDetailInfo(EditOrderMealInfoT);
                EntityBrowser       browser = new EntityBrowser(AddWin);
                browser.MinWidth         = 260;
                browser.MinHeight        = 400;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });

                //OrderMealDetailInfo AddWin = new OrderMealDetailInfo(EditOrderMealInfoT);
                //AddWin.Show();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), "请选择记录");
                return;
            }
        }