public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Support/Dlg_SupportRegist.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy             = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.txtTitle             = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTitle")));
     this.cmbPerson            = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbPerson")));
     this.cmbKbn               = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbKbn")));
     this.cmbLevel             = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbLevel")));
     this.txtPath              = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtPath")));
     this.btnSearch            = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.tblUpload            = ((System.Windows.Controls.TextBlock)(this.FindName("tblUpload")));
     this.txtContent           = ((System.Windows.Controls.TextBox)(this.FindName("txtContent")));
     this.tblbtnF1             = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1                = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF12               = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy             = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
     this.dlgThemeShinyBlue    = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
 }
Esempio n. 2
0
        public static void Show(ExUserControl _utl, Control _errCtl, string strMsg, MessageBoxIcon Icon)
        {
            if (string.IsNullOrEmpty(strMsg))
            {
                return;
            }

            Dlg_MessagBox msg = null;

            if (Icon == MessageBoxIcon.Error)
            {
                msg = new Dlg_MessagBox("エラー確認", strMsg, MessageBoxButtons.Ok, Icon);
            }
            else
            {
                msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, Icon);
            }
            msg.Closed -= ExMessageBox._dlg_Closed;
            msg.Closed += ExMessageBox._dlg_Closed;
            msg.Show();
            ExMessageBox.utl    = _utl;
            ExMessageBox.errCtl = _errCtl;

            //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK);
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_SuportHistory.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.lblCode    = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCode")));
     this.txtCode    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtCode")));
     this.lblName    = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.btnF5      = ((System.Windows.Controls.Button)(this.FindName("btnF5")));
     this.dg         = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg")));
     this.dgHeadCd   = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd")));
     this.dgHeadNm   = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm")));
     this.tblbtnF1   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1      = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF2      = ((System.Windows.Controls.Button)(this.FindName("btnF2")));
     this.tblbtnF2   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF2")));
     this.btnF3      = ((System.Windows.Controls.Button)(this.FindName("btnF3")));
     this.tblbtnF3   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF3")));
     this.btnF4      = ((System.Windows.Controls.Button)(this.FindName("btnF4")));
     this.tblbtnF4   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF4")));
     this.btnF12     = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy   = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
Esempio n. 4
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_MstSearchGroup.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.borSearch  = ((System.Windows.Controls.Border)(this.FindName("borSearch")));
     this.lblCode    = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCode")));
     this.txtCode    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtCode")));
     this.lblName    = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.btnF5      = ((System.Windows.Controls.Button)(this.FindName("btnF5")));
     this.stpKana    = ((System.Windows.Controls.StackPanel)(this.FindName("stpKana")));
     this.lblGroup1  = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblGroup1")));
     this.cmbGroup1  = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbGroup1")));
     this.lblKana    = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblKana")));
     this.txtKana    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtKana")));
     this.tbkSearch  = ((System.Windows.Controls.TextBlock)(this.FindName("tbkSearch")));
     this.dg         = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg")));
     this.dgHeadCd   = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd")));
     this.dgHeadNm   = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm")));
     this.tblbtnF1   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1      = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF2      = ((System.Windows.Controls.Button)(this.FindName("btnF2")));
     this.tblbtnF2   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF2")));
     this.btnF3      = ((System.Windows.Controls.Button)(this.FindName("btnF3")));
     this.tblbtnF3   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF3")));
     this.btnF4      = ((System.Windows.Controls.Button)(this.FindName("btnF4")));
     this.tblbtnF4   = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF4")));
     this.btnF12     = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy   = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/UserControl/Master/Utl_MstUser.xaml", System.UriKind.Relative));
     this.LayoutRoot              = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy                = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.utlFunctionKey          = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.lblTitle                = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblTitle")));
     this.lblId                   = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblId")));
     this.cmbLoginId              = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbLoginId")));
     this.utlMode                 = ((SlvHanbaiClient.View.UserControl.Custom.Utl_Mode)(this.FindName("utlMode")));
     this.stpInput                = ((System.Windows.Controls.StackPanel)(this.FindName("stpInput")));
     this.lblLoginId              = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginId")));
     this.txtLoginId              = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLoginId")));
     this.lblLoginPassword        = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginPassword")));
     this.txtLoginPassword        = ((System.Windows.Controls.PasswordBox)(this.FindName("txtLoginPassword")));
     this.lblLoginPasswordConfirm = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginPasswordConfirm")));
     this.txtLoginPasswordConfirm = ((System.Windows.Controls.PasswordBox)(this.FindName("txtLoginPasswordConfirm")));
     this.lblName                 = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName                 = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.lblCompanyGroup         = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCompanyGroup")));
     this.utlCompanyGroup         = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup")));
     this.lblPerson               = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblPerson")));
     this.utlPerson               = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlPerson")));
     this.lblDisplay              = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblDisplay")));
     this.utlDisplay              = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MeiText)(this.FindName("utlDisplay")));
     this.lblRemark               = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblRemark")));
     this.txtMemo                 = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtMemo")));
     this.utlDummy                = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Report/Dlg_ReportSetting.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dlgThemeShinyBlue    = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
     this.txtDummy             = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.Main                 = ((System.Windows.Controls.Grid)(this.FindName("Main")));
     this.cmbReportSize        = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbReportSize")));
     this.rdoVertical          = ((System.Windows.Controls.RadioButton)(this.FindName("rdoVertical")));
     this.rdoHorizontal        = ((System.Windows.Controls.RadioButton)(this.FindName("rdoHorizontal")));
     this.rdoOriDefault        = ((System.Windows.Controls.RadioButton)(this.FindName("rdoOriDefault")));
     this.txtLeftMargin        = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLeftMargin")));
     this.txtRightMargin       = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtRightMargin")));
     this.txtTopMargin         = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTopMargin")));
     this.txtButtomMargin      = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtButtomMargin")));
     this.stpReportRange       = ((System.Windows.Controls.Border)(this.FindName("stpReportRange")));
     this.tbkGroup             = ((System.Windows.Controls.TextBlock)(this.FindName("tbkGroup")));
     this.utlCompanyGroup_F    = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup_F")));
     this.utlCompanyGroup_T    = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup_T")));
     this.stpGroupTotal        = ((System.Windows.Controls.StackPanel)(this.FindName("stpGroupTotal")));
     this.tbkGroupTotal        = ((System.Windows.Controls.TextBlock)(this.FindName("tbkGroupTotal")));
     this.rdoGroupTotalKbnNasi = ((System.Windows.Controls.RadioButton)(this.FindName("rdoGroupTotalKbnNasi")));
     this.rdoGroupTotalKbnAri  = ((System.Windows.Controls.RadioButton)(this.FindName("rdoGroupTotalKbnAri")));
     this.stpTotalKbn          = ((System.Windows.Controls.Border)(this.FindName("stpTotalKbn")));
     this.cmbTotalKbn          = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbTotalKbn")));
     this.utlFunctionKey       = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.utlDummy             = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Duties/Dlg_SupportReturn.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy   = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.txtTitle   = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTitle")));
     this.txtNo      = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtNo")));
     this.txtLevel   = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLevel")));
     this.txtKbn     = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtKbn")));
     this.txtState   = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtState")));
     this.cmbPerson  = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbPerson")));
     this.txtPath    = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtPath")));
     this.btnSearch  = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.tblUpload  = ((System.Windows.Controls.TextBlock)(this.FindName("tblUpload")));
     this.txtContent = ((System.Windows.Controls.TextBox)(this.FindName("txtContent")));
     this.btnF1      = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF12     = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.stpHistory = ((System.Windows.Controls.StackPanel)(this.FindName("stpHistory")));
     this.utlDummy   = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
Esempio n. 8
0
        public static void ResultShowClr(ExUserControl _utl, Control _errCtl)
        {
            ExMessageBox.utl    = _utl;
            ExMessageBox.errCtl = _errCtl;
            Dlg_MessagBox msg = new Dlg_MessagBox("確認", "クリアします。" + "よろしいですか?", MessageBoxButtons.OkCancel, MessageBoxIcon.Question);

            msg.Closed -= ExMessageBox.dlg_ClosedClr;
            msg.Closed += ExMessageBox.dlg_ClosedClr;
            msg.Show();
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Duties/Dlg_DutiesList.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.stpHistory = ((System.Windows.Controls.StackPanel)(this.FindName("stpHistory")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
     this.dlgThemeShinyBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
 }
Esempio n. 10
0
        private static void _dlg_Closed(object sender, EventArgs e)
        {
            if (ExMessageBox.utl != null)
            {
                utl.ResultMessageBox(ExMessageBox.errCtl);
            }
            else if (ExMessageBox.page != null)
            {
                page.ResultMessageBox(ExMessageBox.errCtl);
            }

            ExMessageBox.utl  = null;
            ExMessageBox.page = null;
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/SystemInf/Dlg_SystemInfList.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy             = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.btnF12               = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.stpHistory           = ((System.Windows.Controls.StackPanel)(this.FindName("stpHistory")));
     this.utlDummy             = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
     this.dlgThemeShinyBlue    = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
 }
Esempio n. 12
0
        public static void ResultShow(ExUserControl _utl, Control _errCtl, string strMsg)
        {
            if (string.IsNullOrEmpty(strMsg))
            {
                return;
            }

            ExMessageBox.utl    = _utl;
            ExMessageBox.errCtl = _errCtl;
            Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.OkCancel, MessageBoxIcon.Question);

            msg.Closed -= ExMessageBox.dlg_Closed;
            msg.Closed += ExMessageBox.dlg_Closed;
            msg.Show();

            //return MessageBox.Show(strMsg, "確認", MessageBoxButton.OKCancel);
        }
Esempio n. 13
0
        public static void Show(ExUserControl _utl, Control _errCtl, string strMsg)
        {
            if (string.IsNullOrEmpty(strMsg))
            {
                return;
            }

            Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, MessageBoxIcon.Information);

            msg.Closed -= ExMessageBox._dlg_Closed;
            msg.Closed += ExMessageBox._dlg_Closed;
            msg.Show();
            ExMessageBox.utl    = _utl;
            ExMessageBox.errCtl = _errCtl;

            //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK);
        }
Esempio n. 14
0
        private void OnEndControlFocus()
        {
            ExUserControl utl = (ExUserControl)ExVisualTreeHelper.FindPerentUserControl(this);

            if (utl == null)
            {
                return;
            }
            Control ctl = ExVisualTreeHelper.SearchControlForTag(utl, "End");

            if (ctl == null)
            {
                return;
            }
            this.CommitEdit();
            ExBackgroundWorker.DoWork_Focus(ctl, 10);
            ExBackgroundWorker.DoWork_Focus(ctl, 100);
        }
Esempio n. 15
0
        public void MoveNextCell()
        {
            DataGridColumn currentcol = this.CurrentColumn;

            // 現在のカラムが最大かどうか
            bool isLastCol = (currentcol.DisplayIndex == this.Columns.Count - 2);

            if (!isLastCol)
            {
                // 編集を終了して次へ
                this.CommitEdit();
                if (IsMinusIndex == true)
                {
                    int before_selectedIndex = this.SelectedIndex;
                    if (before_selectedIndex >= 1)
                    {
                        this.SelectedIndex = before_selectedIndex - 1;
                    }
                }
                this.CurrentColumn = this.Columns[currentcol.DisplayIndex + 1];
                this.BeginEdit();
            }
            else
            {
                int nextIndex = this.SelectedIndex + 1;

                if (this.ItemsSource is ICollection)
                {
                    ICollection lists = (ICollection)this.ItemsSource;
                    if (nextIndex <= (lists.Count - 1))
                    {
                        this.CurrentColumn = this.Columns[0];
                        this.SelectedIndex = nextIndex;
                    }
                    else
                    {
                        ExUserControl utl = (ExUserControl)ExVisualTreeHelper.FindPerentUserControl(this);
                        utl.btnF7_Click(null, null);
                        return;
                    }
                }
            }
            this.ScrollIntoView(this.CurrentItem, this.CurrentColumn);
        }
Esempio n. 16
0
        private static void dlg_ClosedClr(object sender, EventArgs e)
        {
            Dlg_MessagBox msg = (Dlg_MessagBox)sender;

            msg.Closed -= ExMessageBox.dlg_ClosedClr;

            if (ExMessageBox.utl != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    utl.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    utl.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }
            else if (ExMessageBox.page != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    page.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    page.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }
            else if (ExMessageBox.win != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    win.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    win.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }

            ExMessageBox.utl  = null;
            ExMessageBox.page = null;
            ExMessageBox.win  = null;
        }
        public static void Show(ExUserControl _utl, Control _errCtl, string strMsg, MessageBoxIcon Icon)
        {
            if (string.IsNullOrEmpty(strMsg)) return;

            Dlg_MessagBox msg = null;
            if (Icon == MessageBoxIcon.Error)
            {
                msg = new Dlg_MessagBox("エラー確認", strMsg, MessageBoxButtons.Ok, Icon);
            }
            else
            {
                msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, Icon);
            }
            msg.Closed -= ExMessageBox._dlg_Closed;
            msg.Closed += ExMessageBox._dlg_Closed;
            msg.Show();
            ExMessageBox.utl = _utl;
            ExMessageBox.errCtl = _errCtl;

            //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK);
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/UserControl/Master/Utl_MstAuthority.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy            = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.utlFunctionKey      = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.lblTitle            = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblTitle")));
     this.lblUser             = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblUser")));
     this.cmbUser             = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbUser")));
     this.utlMode             = ((SlvHanbaiClient.View.UserControl.Custom.Utl_Mode)(this.FindName("utlMode")));
     this.stpAll              = ((System.Windows.Controls.StackPanel)(this.FindName("stpAll")));
     this.borAll              = ((System.Windows.Controls.Border)(this.FindName("borAll")));
     this.chkAll              = ((System.Windows.Controls.CheckBox)(this.FindName("chkAll")));
     this.stpSales            = ((System.Windows.Controls.StackPanel)(this.FindName("stpSales")));
     this.chkSales            = ((System.Windows.Controls.CheckBox)(this.FindName("chkSales")));
     this.chkEstimateInp      = ((System.Windows.Controls.CheckBox)(this.FindName("chkEstimateInp")));
     this.chkEstimateApproval = ((System.Windows.Controls.CheckBox)(this.FindName("chkEstimateApproval")));
     this.stpSalesReport      = ((System.Windows.Controls.StackPanel)(this.FindName("stpSalesReport")));
     this.chkSalesReport      = ((System.Windows.Controls.CheckBox)(this.FindName("chkSalesReport")));
     this.stpPurchase         = ((System.Windows.Controls.StackPanel)(this.FindName("stpPurchase")));
     this.chkPurchase         = ((System.Windows.Controls.CheckBox)(this.FindName("chkPurchase")));
     this.stpPurchaseReport   = ((System.Windows.Controls.StackPanel)(this.FindName("stpPurchaseReport")));
     this.chkPurcharseReport  = ((System.Windows.Controls.CheckBox)(this.FindName("chkPurcharseReport")));
     this.stpSetting          = ((System.Windows.Controls.StackPanel)(this.FindName("stpSetting")));
     this.chkSetting          = ((System.Windows.Controls.CheckBox)(this.FindName("chkSetting")));
     this.stpSupport          = ((System.Windows.Controls.StackPanel)(this.FindName("stpSupport")));
     this.chkSupport          = ((System.Windows.Controls.CheckBox)(this.FindName("chkSupport")));
     this.stpReport           = ((System.Windows.Controls.StackPanel)(this.FindName("stpReport")));
     this.chkReport           = ((System.Windows.Controls.CheckBox)(this.FindName("chkReport")));
     this.utlDummy            = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/UserControl/Master/Utl_MstUser.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.utlFunctionKey = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.lblTitle = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblTitle")));
     this.lblId = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblId")));
     this.cmbLoginId = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbLoginId")));
     this.utlMode = ((SlvHanbaiClient.View.UserControl.Custom.Utl_Mode)(this.FindName("utlMode")));
     this.stpInput = ((System.Windows.Controls.StackPanel)(this.FindName("stpInput")));
     this.lblLoginId = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginId")));
     this.txtLoginId = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLoginId")));
     this.lblLoginPassword = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginPassword")));
     this.txtLoginPassword = ((System.Windows.Controls.PasswordBox)(this.FindName("txtLoginPassword")));
     this.lblLoginPasswordConfirm = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblLoginPasswordConfirm")));
     this.txtLoginPasswordConfirm = ((System.Windows.Controls.PasswordBox)(this.FindName("txtLoginPasswordConfirm")));
     this.lblName = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.lblCompanyGroup = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCompanyGroup")));
     this.utlCompanyGroup = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup")));
     this.lblPerson = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblPerson")));
     this.utlPerson = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlPerson")));
     this.lblDisplay = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblDisplay")));
     this.utlDisplay = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MeiText)(this.FindName("utlDisplay")));
     this.lblRemark = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblRemark")));
     this.txtMemo = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtMemo")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/%E3%82%B3%E3%83%94%E3%83%BC%20%EF%BD%9E%20Dlg" +
                 "_MstSearch.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.borSearch = ((System.Windows.Controls.Border)(this.FindName("borSearch")));
     this.lblCode = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCode")));
     this.txtCode = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtCode")));
     this.lblName = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.btnF5 = ((System.Windows.Controls.Button)(this.FindName("btnF5")));
     this.stpKana = ((System.Windows.Controls.StackPanel)(this.FindName("stpKana")));
     this.lblKana = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblKana")));
     this.txtKana = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtKana")));
     this.tbkSearch = ((System.Windows.Controls.TextBlock)(this.FindName("tbkSearch")));
     this.dg = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg")));
     this.dgHeadCd = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd")));
     this.dgHeadNm = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm")));
     this.tblbtnF1 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF2 = ((System.Windows.Controls.Button)(this.FindName("btnF2")));
     this.tblbtnF2 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF2")));
     this.btnF3 = ((System.Windows.Controls.Button)(this.FindName("btnF3")));
     this.tblbtnF3 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF3")));
     this.btnF4 = ((System.Windows.Controls.Button)(this.FindName("btnF4")));
     this.tblbtnF4 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF4")));
     this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_MstSearchBank.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.lblCode = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblCode")));
     this.txtCode = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtCode")));
     this.lblName = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblName")));
     this.txtName = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtName")));
     this.btnF5 = ((System.Windows.Controls.Button)(this.FindName("btnF5")));
     this.dg = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg")));
     this.dgHeadCd = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd")));
     this.dgHeadNm = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm")));
     this.tblbtnF1 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF2 = ((System.Windows.Controls.Button)(this.FindName("btnF2")));
     this.tblbtnF2 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF2")));
     this.btnF3 = ((System.Windows.Controls.Button)(this.FindName("btnF3")));
     this.tblbtnF3 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF3")));
     this.btnF4 = ((System.Windows.Controls.Button)(this.FindName("btnF4")));
     this.tblbtnF4 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF4")));
     this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_SupportReturn.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.txtTitle = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTitle")));
     this.txtNo = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtNo")));
     this.txtLevel = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLevel")));
     this.txtKbn = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtKbn")));
     this.txtState = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtState")));
     this.cmbPerson = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbPerson")));
     this.txtPath = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtPath")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.tblUpload = ((System.Windows.Controls.TextBlock)(this.FindName("tblUpload")));
     this.txtContent = ((System.Windows.Controls.TextBox)(this.FindName("txtContent")));
     this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.stpHistory = ((System.Windows.Controls.StackPanel)(this.FindName("stpHistory")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
        public static void ResultShow(ExUserControl _utl, Control _errCtl, string strMsg)
        {
            if (string.IsNullOrEmpty(strMsg)) return;

            ExMessageBox.utl = _utl;
            ExMessageBox.errCtl = _errCtl;
            Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.OkCancel, MessageBoxIcon.Question);
            msg.Closed -= ExMessageBox.dlg_Closed;
            msg.Closed += ExMessageBox.dlg_Closed;
            msg.Show();

            //return MessageBox.Show(strMsg, "確認", MessageBoxButton.OKCancel);
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Report/Dlg_ReportSetting.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dlgThemeShinyBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.Main = ((System.Windows.Controls.Grid)(this.FindName("Main")));
     this.cmbReportSize = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbReportSize")));
     this.rdoVertical = ((System.Windows.Controls.RadioButton)(this.FindName("rdoVertical")));
     this.rdoHorizontal = ((System.Windows.Controls.RadioButton)(this.FindName("rdoHorizontal")));
     this.rdoOriDefault = ((System.Windows.Controls.RadioButton)(this.FindName("rdoOriDefault")));
     this.txtLeftMargin = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtLeftMargin")));
     this.txtRightMargin = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtRightMargin")));
     this.txtTopMargin = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTopMargin")));
     this.txtButtomMargin = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtButtomMargin")));
     this.stpReportRange = ((System.Windows.Controls.Border)(this.FindName("stpReportRange")));
     this.tbkGroup = ((System.Windows.Controls.TextBlock)(this.FindName("tbkGroup")));
     this.utlCompanyGroup_F = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup_F")));
     this.utlCompanyGroup_T = ((SlvHanbaiClient.View.UserControl.Custom.Utl_MstText)(this.FindName("utlCompanyGroup_T")));
     this.stpGroupTotal = ((System.Windows.Controls.StackPanel)(this.FindName("stpGroupTotal")));
     this.tbkGroupTotal = ((System.Windows.Controls.TextBlock)(this.FindName("tbkGroupTotal")));
     this.rdoGroupTotalKbnNasi = ((System.Windows.Controls.RadioButton)(this.FindName("rdoGroupTotalKbnNasi")));
     this.rdoGroupTotalKbnAri = ((System.Windows.Controls.RadioButton)(this.FindName("rdoGroupTotalKbnAri")));
     this.stpTotalKbn = ((System.Windows.Controls.Border)(this.FindName("stpTotalKbn")));
     this.cmbTotalKbn = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbTotalKbn")));
     this.utlFunctionKey = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
        public static void Show(ExUserControl _utl, Control _errCtl, string strMsg)
        {
            if (string.IsNullOrEmpty(strMsg)) return;

            Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, MessageBoxIcon.Information);
            msg.Closed -= ExMessageBox._dlg_Closed;
            msg.Closed += ExMessageBox._dlg_Closed;
            msg.Show();
            ExMessageBox.utl = _utl;
            ExMessageBox.errCtl = _errCtl;

            //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK);
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Support/Dlg_SupportRegist.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.txtTitle = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtTitle")));
     this.cmbPerson = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbPerson")));
     this.cmbKbn = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbKbn")));
     this.cmbLevel = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbLevel")));
     this.txtPath = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtPath")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.tblUpload = ((System.Windows.Controls.TextBlock)(this.FindName("tblUpload")));
     this.txtContent = ((System.Windows.Controls.TextBox)(this.FindName("txtContent")));
     this.tblbtnF1 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1")));
     this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1")));
     this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
     this.dlgThemeShinyBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue")));
     this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue")));
 }
Esempio n. 27
0
        // マスタ名称取得
        public void GetMData(geMDataKbn mstKbn, string[] id, ExUserControl page)
        {
            ExWebServiceMst webService = new ExWebServiceMst();

            object[] prm;
            _page = page;

            switch (mstKbn)
            {
                #region 得意先

                case geMDataKbn.Customer:               // 得意先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Customer_F:               // 得意先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Customer_T:               // 得意先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 納入先

                case geMDataKbn.Supplier:               // 納入先
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Supplier_F:               // 納入先
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Supplier_T:               // 納入先
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 担当

                case geMDataKbn.Person:                 // 担当
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Person_F:                 // 担当
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Person_T:                 // 担当
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 商品

                case geMDataKbn.Commodity:               // 商品
                    prm = new object[2];
                    prm[0] = id[0];
                    if (id.Length > 1) prm[1] = id[1];
                    else prm[1] = "";
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity,
                                                 MstData.dialogDisplayFlg,
                                                 MstData.dialogCloseFlg,
                                                 prm);
                    MstData.dialogDisplayFlg = ExWebService.geDialogDisplayFlg.No;
                    MstData.dialogCloseFlg = ExWebService.geDialogCloseFlg.No;
                    break;
                case geMDataKbn.Commodity_F:               // 商品
                    prm = new object[2];
                    prm[0] = id[0];
                    if (id.Length > 1) prm[1] = id[1];
                    else prm[1] = "";
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Commodity_T:               // 商品
                    prm = new object[2];
                    prm[0] = id[0];
                    if (id.Length > 1) prm[1] = id[1];
                    else prm[1] = "";
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 会社グループ

                case geMDataKbn.CompanyGroup:           // 会社グループ
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.CompanyGroup_F:           // 会社グループ
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.CompanyGroup_T:           // 会社グループ
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 郵便番号

                case geMDataKbn.Zip:                    // 郵便番号
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetZip,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 締区分

                case geMDataKbn.Condition:              // 締区分
                    prm = new object[2];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Condition_F:              // 締区分
                    prm = new object[2];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Condition_T:              // 締区分
                    prm = new object[2];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 入金区分

                case geMDataKbn.RecieptDivision:        // 入金区分
                    prm = new object[2];
                    prm[0] = id[0];
                    if (id.Length > 1) prm[1] = id[1];
                    else prm[1] = "";
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetRecieptDivision,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 分類

                case geMDataKbn.Group:                  // 分類
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                case geMDataKbn.Group_F:                  // 分類
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                case geMDataKbn.Group_T:                  // 分類
                    prm = new object[2];
                    prm[0] = id[0];
                    prm[1] = id[1];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                #region 仕入先

                case geMDataKbn.Purchase:               // 仕入先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Purchase_F:               // 仕入先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase_F,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;
                case geMDataKbn.Purchase_T:               // 仕入先
                    prm = new object[1];
                    prm[0] = id[0];
                    webService.objPerent = page;
                    webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase_T,
                                                 ExWebService.geDialogDisplayFlg.No,
                                                 ExWebService.geDialogCloseFlg.No,
                                                 prm);
                    break;

                #endregion

                default:
                    break;
            }

            if (page is Utl_MstText)
            {
                Utl_MstText utl = (Utl_MstText)page;
                utl.Is_Call_MstID_Changed = true;
            }
        }
 public static void ResultShowClr(ExUserControl _utl, Control _errCtl)
 {
     ExMessageBox.utl = _utl;
     ExMessageBox.errCtl = _errCtl;
     Dlg_MessagBox msg = new Dlg_MessagBox("確認", "クリアします。" + "よろしいですか?", MessageBoxButtons.OkCancel, MessageBoxIcon.Question);
     msg.Closed -= ExMessageBox.dlg_ClosedClr;
     msg.Closed += ExMessageBox.dlg_ClosedClr;
     msg.Show();
 }
Esempio n. 29
0
        // 次コントロールフォーカス移動
        public void OnNextControl()
        {
            try
            {
                if (this.listDisplayTabIndex == null)
                {
                    return;
                }
                if (this.listDisplayTabIndex.Count == 0)
                {
                    return;
                }

                // 現在フォーカスがあるコントロールを取得
                Control ctl = (Control)FocusManager.GetFocusedElement();
                if (ctl == null)
                {
                    return;
                }

                // DatePickerTextBoxの場合、親を取得
                if (ctl is System.Windows.Controls.Primitives.DatePickerTextBox)
                {
                    try
                    {
                        DependencyObject obj  = VisualTreeHelper.GetParent(ctl);
                        Control          ctl2 = (Control)VisualTreeHelper.GetParent(obj);
                        if (ctl2 is System.Windows.Controls.DatePicker)
                        {
                            ctl = ctl2;
                        }
                    }
                    catch
                    {
                    }
                }

                // UserControlタイプの場合
                if (ctl.Name == "txtID" || ctl.Name == "txtBindID")
                {
                    DependencyObject obj = (DependencyObject)ctl;
                    ExUserControl    utl = (ExUserControl)ExVisualTreeHelper.FindPerentUserControl((DependencyObject)ctl);

                    if (utl == null)
                    {
                        return;
                    }
                    if (utl.Tag == null)
                    {
                        return;
                    }
                    if (utl.Tag.ToString().Length == 0)
                    {
                        return;
                    }
                    if (utl.Tag.ToString().IndexOf("TabSearchOn") == -1)
                    {
                        return;
                    }

                    ctl = utl;
                }

                string tag = ExVisualTreeHelper.GetTagDisplayTabIndex(this.listDisplayTabIndex, ctl.Name);
                if (tag.IndexOf("End") == -1)
                {
                    // 次のコントロールを取得
                    Control ctlNext = null;
                    ctlNext = ExVisualTreeHelper.GetNextDisplayTabIndexCtl(this.listDisplayTabIndex, ctl.Name);
                    if (ctlNext == null)
                    {
                        return;
                    }
                    if (ctlNext.IsTabStop == false)
                    {
                        return;
                    }
                    ExBackgroundWorker.DoWork_Focus(ctlNext, 10);
                }
                else
                {
                    // データグリッドを取得
                    ExDataGrid dg = null;
                    dg = ExVisualTreeHelper.FindDataGrid(this);
                    if (dg == null)
                    {
                        return;
                    }
                    ExBackgroundWorker.DoWork_DataGridSelectedFirst(dg, 10);
                }

                //ctlNext.Focus();

                IsEnterKeyDown = true;
            }
            catch
            {
            }
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/UserControl/Master/Utl_MstAuthority.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtDummy = ((System.Windows.Controls.TextBox)(this.FindName("txtDummy")));
     this.utlFunctionKey = ((SlvHanbaiClient.View.UserControl.Custom.Utl_FunctionKey)(this.FindName("utlFunctionKey")));
     this.lblTitle = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblTitle")));
     this.lblUser = ((SlvHanbaiClient.Class.UI.ExLabel)(this.FindName("lblUser")));
     this.cmbUser = ((SlvHanbaiClient.Class.UI.ExComboBox)(this.FindName("cmbUser")));
     this.utlMode = ((SlvHanbaiClient.View.UserControl.Custom.Utl_Mode)(this.FindName("utlMode")));
     this.stpAll = ((System.Windows.Controls.StackPanel)(this.FindName("stpAll")));
     this.borAll = ((System.Windows.Controls.Border)(this.FindName("borAll")));
     this.chkAll = ((System.Windows.Controls.CheckBox)(this.FindName("chkAll")));
     this.stpSales = ((System.Windows.Controls.StackPanel)(this.FindName("stpSales")));
     this.chkSales = ((System.Windows.Controls.CheckBox)(this.FindName("chkSales")));
     this.chkEstimateInp = ((System.Windows.Controls.CheckBox)(this.FindName("chkEstimateInp")));
     this.chkEstimateApproval = ((System.Windows.Controls.CheckBox)(this.FindName("chkEstimateApproval")));
     this.stpSalesReport = ((System.Windows.Controls.StackPanel)(this.FindName("stpSalesReport")));
     this.chkSalesReport = ((System.Windows.Controls.CheckBox)(this.FindName("chkSalesReport")));
     this.stpPurchase = ((System.Windows.Controls.StackPanel)(this.FindName("stpPurchase")));
     this.chkPurchase = ((System.Windows.Controls.CheckBox)(this.FindName("chkPurchase")));
     this.stpPurchaseReport = ((System.Windows.Controls.StackPanel)(this.FindName("stpPurchaseReport")));
     this.chkPurcharseReport = ((System.Windows.Controls.CheckBox)(this.FindName("chkPurcharseReport")));
     this.stpSetting = ((System.Windows.Controls.StackPanel)(this.FindName("stpSetting")));
     this.chkSetting = ((System.Windows.Controls.CheckBox)(this.FindName("chkSetting")));
     this.stpSupport = ((System.Windows.Controls.StackPanel)(this.FindName("stpSupport")));
     this.chkSupport = ((System.Windows.Controls.CheckBox)(this.FindName("chkSupport")));
     this.stpReport = ((System.Windows.Controls.StackPanel)(this.FindName("stpReport")));
     this.chkReport = ((System.Windows.Controls.CheckBox)(this.FindName("chkReport")));
     this.utlDummy = ((SlvHanbaiClient.Class.UI.ExUserControl)(this.FindName("utlDummy")));
 }
        private static void dlg_ClosedClr(object sender, EventArgs e)
        {
            Dlg_MessagBox msg = (Dlg_MessagBox)sender;
            msg.Closed -= ExMessageBox.dlg_ClosedClr;

            if (ExMessageBox.utl != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    utl.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    utl.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }
            else if (ExMessageBox.page != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    page.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    page.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }
            else if (ExMessageBox.win != null)
            {
                if (msg.Result == MessageBoxResult.OK)
                {
                    win.ResultMessageBoxClr(msg.Result, null);
                }
                else
                {
                    win.ResultMessageBoxClr(msg.Result, ExMessageBox.errCtl);
                }
            }

            ExMessageBox.utl = null;
            ExMessageBox.page = null;
            ExMessageBox.win = null;
        }
        public void Init()
        {
            this.GridMain.Children.Clear();

            switch (Common.gWinGroupType)
            {
                case Common.geWinGroupType.InpList:
                    switch (Common.gWinType)
                    {
                        case Common.geWinType.ListEstimat:              // 見積一覧
                            this.Title = "見積一覧";
                            utl = new Utl_InpSearchEstimate();
                            break;
                        case Common.geWinType.ListOrder:                // 受注一覧
                            this.Title = "受注一覧";
                            utl = new Utl_InpSearchOrder();
                            break;
                        case Common.geWinType.ListSales:                // 売上一覧
                            this.Title = "売上一覧";
                            utl = new Utl_InpSearchSales();
                            break;
                        case Common.geWinType.ListReceipt:              // 入金一覧
                            this.Title = "入金一覧";
                            utl = new Utl_InpSearchReceipt();
                            break;
                        case Common.geWinType.ListInvoice:              // 請求一覧
                            this.Title = "請求一覧";
                            utl = new Utl_InpInvoicePrint();
                            break;
                        case Common.geWinType.ListPurchaseOrder:        // 発注一覧
                            this.Title = "発注一覧";
                            utl = new Utl_InpSearchPurchaseOrder();
                            break;
                        case Common.geWinType.ListPurchase:             // 仕入一覧
                            this.Title = "仕入一覧";
                            utl = new Utl_InpSearchPurchase();
                            break;
                        case Common.geWinType.ListPaymentCash:          // 出金一覧
                            this.Title = "出金一覧";
                            utl = new Utl_InpSearchPaymentCash();
                            break;
                        case Common.geWinType.ListPayment:              // 支払一覧
                            this.Title = "支払一覧";
                            utl = new Utl_InpPaymentPrint();
                            break;
                        case Common.geWinType.ListInOutDelivery:        // 入出庫一覧
                            this.Title = "入出庫一覧";
                            utl = new Utl_InpSearchInOutDelivery ();
                            break;
                        default:
                            break;
                    }
                    break;
                case Common.geWinGroupType.InpListUpd:
                    switch (Common.gWinType)
                    {
                        case Common.geWinType.ListInvoiceBalance:           // 請求残高
                            this.Title = "請求残高";
                            utl = new Utl_InpInvoiceBalance();
                            break;
                        case Common.geWinType.ListSalesCreditBalance:       // 売掛残高
                            this.Title = "売掛残高";
                            utl = new Utl_InpSalesCreditBalance();
                            break;
                        case Common.geWinType.ListPaymentBalance:           // 支払残高
                            this.Title = "支払残高";
                            utl = new Utl_InpPaymentBalance();
                            break;
                        case Common.geWinType.ListPaymentCreditBalance:     // 買掛残高
                            this.Title = "買掛残高";
                            utl = new Utl_InpPaymentCreditBalance();
                            break;
                        default:
                            break;
                    }
                    break;
                case Common.geWinGroupType.InpListReport:
                    //this.Height = 320;
                    //this.VerticalAlignment = System.Windows.VerticalAlignment.Top;

                    switch (Common.gWinType)
                    {
                        case Common.geWinType.ListEstimat:              // 見積一覧
                            this.Title = "レポート出力:見積書";
                            utl = new Utl_InpSearchEstimate();
                            break;
                        case Common.geWinType.ListOrder:                // 受注一覧
                            this.Title = "レポート出力:注文請書";
                            utl = new Utl_InpSearchOrder();
                            break;
                        case Common.geWinType.ListSales:                // 売上一覧
                            this.Title = "レポート出力:納品書";
                            utl = new Utl_InpSearchSales();
                            break;
                        case Common.geWinType.ListInvoice:              // 請求一覧
                            this.Title = "レポート出力:請求書";
                            utl = new Utl_InpInvoicePrint();
                            this.Height = 700;
                            break;
                        case Common.geWinType.ListReceipt:              // 入金一覧
                            this.Title = "レポート出力:入金書";
                            utl = new Utl_InpSearchReceipt();
                            break;
                        case Common.geWinType.ListSalesCreditBalance:   // 売掛残高一覧
                            this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                            this.Title = "レポート出力:売掛残高一覧表";
                            this.Height = 320;
                            utl = new Utl_InpSalesCreditBalance();
                            break;
                        case Common.geWinType.ListInvoiceBalance:       // 請求残高一覧
                            this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                            this.Title = "レポート出力:請求残高一覧表";
                            this.Height = 200;
                            utl = new Utl_InpInvoiceBalance();
                            break;
                        case Common.geWinType.ListPaymentCreditBalance:   // 買掛残高一覧
                            this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                            this.Title = "レポート出力:買掛残高一覧表";
                            this.Height = 320;
                            utl = new Utl_InpPaymentCreditBalance();
                            break;
                        case Common.geWinType.ListPaymentBalance:       // 支払残高一覧
                            this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                            this.Title = "レポート出力:支払残高一覧表";
                            this.Height = 200;
                            utl = new Utl_InpPaymentBalance();
                            break;
                        case Common.geWinType.ListPurchaseOrder:        // 発注一覧
                            this.Title = "レポート出力:注文書";
                            utl = new Utl_InpSearchPurchaseOrder();
                            break;
                        case Common.geWinType.ListPayment:              // 支払一覧
                            this.Title = "レポート出力:支払書";
                            utl = new Utl_InpPaymentPrint();
                            this.Height = 700;
                            break;
                        case Common.geWinType.ListInOutDelivery:        // 入出庫一覧
                            this.Title = "レポート出力:入出庫一覧表";
                            utl = new Utl_InpSearchInOutDelivery();
                            break;
                        case Common.geWinType.ListInventory:            // 在庫一覧
                            this.Title = "レポート出力:在庫一覧表";
                            utl = new Utl_InpSearchInventory();
                            break;
                        default:
                            break;
                    }
                    break;
                case Common.geWinGroupType.InpDetailReport:
                    this.Height = 320;
                    this.VerticalAlignment = System.Windows.VerticalAlignment.Top;

                    switch (Common.gWinType)
                    {
                        case Common.geWinType.ListEstimat:              // 見積一覧
                            this.Title = "レポート出力:見積明細書";
                            utl = new Utl_InpSearchEstimate();
                            break;
                        case Common.geWinType.ListOrder:                // 受注一覧
                            this.Title = "レポート出力:受注明細書";
                            utl = new Utl_InpSearchOrder();
                            break;
                        case Common.geWinType.ListSales:                // 売上一覧
                            this.Title = "レポート出力:売上明細書";
                            utl = new Utl_InpSearchSales();
                            break;
                        case Common.geWinType.ListReceipt:              // 入金一覧
                            this.Title = "レポート出力:入金明細書";
                            utl = new Utl_InpSearchReceipt();
                            break;
                        case Common.geWinType.ListCollectPlan:          // 回収予定表
                            this.Title = "レポート出力:回収予定表";
                            utl = new Utl_InpSearchPlan();
                            break;
                        case Common.geWinType.ListPurchaseOrder:        // 発注一覧
                            this.Title = "レポート出力:発注明細書";
                            utl = new Utl_InpSearchPurchaseOrder();
                            break;
                        case Common.geWinType.ListPurchase:             // 仕入一覧
                            this.Title = "レポート出力:仕入明細書";
                            utl = new Utl_InpSearchPurchase();
                            break;
                        case Common.geWinType.ListPaymentCash:          // 出金一覧
                            this.Title = "レポート出力:出金明細書";
                            utl = new Utl_InpSearchPaymentCash();
                            break;
                        case Common.geWinType.ListPaymentPlan:          // 支払予定表
                            this.Title = "レポート出力:支払予定表";
                            utl = new Utl_InpSearchPlan();
                            break;
                        default:
                            break;
                    }
                    break;
            }

            utl.Name = "utlInpSearch";
            this.GridMain.Children.Add(utl);
            this.SetWindowsResource();
        }
        public static List <ListDisplayTabIndex> GetDisplayTabIndex(DependencyObject RootObj)
        {
            List <ListDisplayTabIndex> _list = new List <ListDisplayTabIndex>();
            int i = 0;

            foreach (DependencyObject ob in FindVisualChildrenNoType(RootObj))
            {
                Control ctl = null;
                try
                {
                    if (ob is ExTextBox)
                    {
                        ExTextBox txt = (ExTextBox)ob;
                        if (txt.Tag.ToString().IndexOf("TabSearchOn") != -1 && txt.IsTabStop == true)
                        {
                            ctl = (Control)ob;
                            _list.Add(new ListDisplayTabIndex(i, ctl.Name, ExCast.zCStr(ctl.Tag), ctl));
                        }
                    }
                    if (ob is ExUserControl && (ob is Utl_Zip) == false)
                    {
                        ExUserControl utl = (ExUserControl)ob;
                        if (utl.Tag.ToString().IndexOf("TabSearchOn") != -1 && utl.IsTabStop == true)
                        {
                            ctl = (Control)ob;
                            _list.Add(new ListDisplayTabIndex(i, ctl.Name, ExCast.zCStr(ctl.Tag), ctl));
                        }
                    }
                    if (ob is Utl_Zip)
                    {
                        Utl_Zip zip = (Utl_Zip)ob;
                        i += 1;
                        _list.Add(new ListDisplayTabIndex(i, zip.txtZipNo1.Name, ExCast.zCStr(zip.Tag), zip.txtZipNo1));
                        i += 1;
                        _list.Add(new ListDisplayTabIndex(i, zip.txtZipNo2.Name, ExCast.zCStr(zip.Tag), zip.txtZipNo2));
                        i += 1;
                        _list.Add(new ListDisplayTabIndex(i, zip.btnZip.Name, ExCast.zCStr(zip.Tag), zip.btnZip));
                        i += 1;
                        _list.Add(new ListDisplayTabIndex(i, zip.txtAdress1.Name, ExCast.zCStr(zip.Tag), zip.txtAdress1));
                        i += 1;
                        _list.Add(new ListDisplayTabIndex(i, zip.txtAdress2.Name, ExCast.zCStr(zip.Tag), zip.txtAdress2));
                    }
                    if (ob is ComboBox || ob is ExDatePicker || ob is PasswordBox || ob is ExCheckBox || ob is ExDataGrid || ob is RadioButton)
                    {
                        ctl = (Control)ob;
                        if (ctl.IsTabStop == true)
                        {
                            _list.Add(new ListDisplayTabIndex(i, ctl.Name, ExCast.zCStr(ctl.Tag), ctl));
                        }
                    }
                    if (ob is Button)
                    {
                        ctl = (Control)ob;
                        if (ctl.Name != "btnZip")
                        {
                            _list.Add(new ListDisplayTabIndex(i, ctl.Name, ExCast.zCStr(ctl.Tag), ctl));
                        }
                    }
                }
                catch
                {
                }
                i += 1;
            }
            return(_list);
        }
Esempio n. 34
0
        protected override void OnKeyDown(KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Enter:

                #region DataForm

                ExDataForm _df = (ExDataForm)ExVisualTreeHelper.FindPerentDataForm(this);
                if (_df != null)
                {
                    ExUserControl _utl = (ExUserControl)ExVisualTreeHelper.FindPerentUserControl(this);

                    #region DataForm EstimateDetail

                    Utl_DataFormEstimate utlEstimate = null;
                    try
                    {
                        utlEstimate = (Utl_DataFormEstimate)_utl;
                    }
                    catch
                    {
                    }
                    if (utlEstimate != null)
                    {
                        if (Keyboard.Modifiers == ModifierKeys.Shift)
                        {
                            utlEstimate.OnBeforeControl();
                            e.Handled = true;
                            return;
                        }
                        else
                        {
                            utlEstimate.OnNextControl();
                            e.Handled = true;
                            return;
                        }
                    }

                    #endregion

                    #region DataForm OrderDetail

                    Utl_DataFormOrder utlOrder = null;
                    try
                    {
                        utlOrder = (Utl_DataFormOrder)_utl;
                    }
                    catch
                    {
                    }
                    if (utlOrder != null)
                    {
                        if (Keyboard.Modifiers == ModifierKeys.Shift)
                        {
                            utlOrder.OnBeforeControl();
                            e.Handled = true;
                            return;
                        }
                        else
                        {
                            utlOrder.OnNextControl();
                            e.Handled = true;
                            return;
                        }
                    }

                    #endregion

                    #region DataForm SalesDetail

                    Utl_DataFormSales utlSales = null;
                    try
                    {
                        utlSales = (Utl_DataFormSales)_utl;
                    }
                    catch
                    {
                    }
                    if (utlSales != null)
                    {
                        if (Keyboard.Modifiers == ModifierKeys.Shift)
                        {
                            utlSales.OnBeforeControl();
                            e.Handled = true;
                            return;
                        }
                        else
                        {
                            utlSales.OnNextControl();
                            e.Handled = true;
                            return;
                        }
                    }

                    #endregion
                }

                #endregion

                #region DataGrid

                ExDataGrid _dg = (ExDataGrid)ExVisualTreeHelper.FindPerentDataGrid(this);
                if (_dg != null)
                {
                    if (Keyboard.Modifiers == ModifierKeys.Shift)
                    {
                        //_dg.MoveBeforeCell();
                        e.Handled = true;
                        return;
                    }
                    else
                    {
                        //_dg.MoveNextCell();
                        e.Handled = true;
                        return;
                    }
                }

                #endregion

                #region Page

                ExPage _page = (ExPage)ExVisualTreeHelper.FindPerentPage(this);
                if (_page != null)
                {
                    if (Keyboard.Modifiers == ModifierKeys.Shift)
                    {
                        _page.OnBeforeControl();
                        e.Handled = true;
                        return;
                    }
                    else
                    {
                        _page.OnNextControl();
                        e.Handled = true;
                        return;
                    }
                }

                #endregion

                #region ChildWindow

                ExChildWindow _win = (ExChildWindow)ExVisualTreeHelper.FindPerentChildWindow(this);
                if (_win != null)
                {
                    if (Keyboard.Modifiers == ModifierKeys.Shift)
                    {
                        _win.OnBeforeControl();
                        e.Handled = true;
                        return;
                    }
                    else
                    {
                        _win.OnNextControl();
                        e.Handled = true;
                        return;
                    }
                }

                #endregion

                break;
            }

            base.OnKeyDown(e);
        }
        private static void _dlg_Closed(object sender, EventArgs e)
        {
            if (ExMessageBox.utl != null)
            {
                utl.ResultMessageBox(ExMessageBox.errCtl);
            }
            else if (ExMessageBox.page != null)
            {
                page.ResultMessageBox(ExMessageBox.errCtl);
            }

            ExMessageBox.utl = null;
            ExMessageBox.page = null;

        }