Ejemplo n.º 1
0
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            CustomerCallingMaintain uc = new CustomerCallingMaintain();

            uc.Dialog = Window.ShowDialog(ResCustomerCalingQuery.Dialog_Title_Edit, uc, (obj, args) =>
            {
                if (args.DialogResult == DialogResultType.OK)
                {
                    Search();
                }
            }, new Size(1050, 600));
        }
Ejemplo n.º 2
0
        private void hlbCloseCallsEvents_Click(object sender, RoutedEventArgs e)
        {
            if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_CustomerCallingList_Close))
            {
                Window.Alert(ResCustomerCalingQuery.Msg_HasNoRights);
                return;
            }
            CustomerCallingMaintain uc = new CustomerCallingMaintain();

            uc.viewModel.SysNo = (dataGridCalling.SelectedItem as CallingVM).SysNo;
            uc.Operate         = "close";
            uc.Dialog          = Window.ShowDialog(ResCustomerCalingQuery.Dialog_Title_Edit, uc, (obj, args) =>
            {
                if (args.DialogResult == DialogResultType.OK)
                {
                    Search();
                }
            }, new Size(1050, 600));
        }