Пример #1
0
        private void BtnMainAdd_Click(object sender, RoutedEventArgs e)
        {
            WmsAreaInfo main = new WmsAreaInfo()
            {
                PKNO         = "",
                COMPANY_CODE = "",
                USE_FLAG     = 1,
            };
            AreaMang mainEdit = new AreaMang(main);

            mainEdit.ShowDialog();

            GetMainData();
        }
Пример #2
0
        private void BtnMainMod_Click(object sender, RoutedEventArgs e)
        {
            WmsAreaInfo m_WmsAreaInfo = tvMain.SelectedItem as WmsAreaInfo;

            if ((m_WmsAreaInfo == null) || (string.IsNullOrEmpty(m_WmsAreaInfo.PKNO)))
            {
                return;
            }
            AreaMang mainEdit = new AreaMang(m_WmsAreaInfo);

            mainEdit.ShowDialog();

            GetMainData();
        }