示例#1
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel(IModernNavigationService navService)
        {
            ViewLoaded = new RelayCommand(Loaded);

            // Load our settings from the saved configuration (if present)
            LoadSettings();
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialInStorageTaskInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     getPageDataRole(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
示例#3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatInventoryInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     getPageDataMatWareHouse(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MatInventoryInfo.InventoryCode = BillCodeUtility.getInventoryCode();
     MatInventoryInfo.Operator      = GlobalData.CurrentLoginUser.UserName;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public ProductionProcessEquipmentBusinessNodeMapViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     SaveCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteSaveCommand, OnCanExecuteSaveCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     SearchCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(OnExecuteSearchCommand);
     BusinessSelectionChangedCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnBusinessSelectionChangedCommand);
     EquipmentSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnEquipmentSelectionChangedCommand);
     ProductionProcessChangedCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnProductionProcessChangedCommand);
 }
示例#5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public ProductionRuleItemInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     enterpriseSelectionChangedCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteenterpriseSelectionChangedCommand);
     siteSelectionChangedCommand           = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutesiteSelectionChangedCommand);
     areaSelectionChangedCommand           = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteareaSelectionChangedCommand);
     productionLineSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutproductionLineSelectionChangedCommand);
     getPageData(1, 200);
 }
示例#6
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public TaskInfoEditViewModel()
        {
            ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
            CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);


            getMarkPointInfoPageData(1, 200);
            getAgvInfoPageData(1, 200);
            getRouteInfoPageData(1, 200);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatWareHouseAreaInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     ColumnNumberTextChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteColumnNumberTextChangedCommand);
     LayerNumberTextChangedCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteLayerNumberTextChangedCommand);
     //
     getPageDataMatWareHouse(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
示例#8
0
 /// <summary>
 /// 初始化命令
 /// </summary>
 private void initCommand()
 {
     RefreshCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteRefreshCommand);
     //WorkOrderGenerateCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderGenerateCommand, OnCanExecuteWorkOrderGenerateCommand);
     WorkOrderCheckingCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderCheckingCommand, OnCanExecuteWorkOrderCheckingCommand);
     //WorkOrderDistributeCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderDistributeCommand, OnCanExecuteWorkOrderDistributeCommand);
     PlanCarryCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutePlanCarryCommand, OnCanExecutePlanCarryCommand);
     ImportCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteImportCommand, OnCanExecuteImportCommand);
     SearchCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(OnExecuteSearchCommand);
 }
示例#9
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatWareHouseInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     enterpriseSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteenterpriseSelectionChangedCommand);
     siteSelectionChangedCommand       = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutesiteSelectionChangedCommand);
     //
     getPageData(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatWareHouseType(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
示例#10
0
 /// <summary>
 /// 初始化命令
 /// </summary>
 private void initCommand()
 {
     RefreshCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteRefreshCommand);
     SearchCommand      = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(OnExecuteSearchCommand);
     SearchItemCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <DataGrid>(OnExecuteSearchItemCommand);
     SearchItem2Command = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <DataGrid>(OnExecuteSearchItem2Command);
     //
     matwarehouseSelectionChangedCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Guid>(OnExecutematwarehouseSelectionChangedCommand);
     matwarehouseareaSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Guid>(OnExecutematwarehouseareaSelectionChangedCommand);
     //
 }
示例#11
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void inti()
        {
#if  RELEASE  //调试时不执行
            int.TryParse(Utility.ConfigHelper.GetAppSetting("PageSize"), out defaultPageSize);
#endif
            FirstPageCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteFirstPageCommand, OnCanExecuteFirstPageCommand);
            PreviousPageCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutePreviousPageCommand, OnCanExecutePreviousPageCommand);
            NextPageCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteNextPageCommand, OnCanExecuteNextPageCommand);
            LastPageCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteLastPageCommand, OnCanExecuteLastPageCommand);
            LastPageCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteLastPageCommand, OnCanExecuteLastPageCommand);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatStorageModifyInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     materialbatchSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutematerialbatchSelectionChangedCommand);
     CurrentAmountTextChangedCommand      = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCurrentAmountTextChangedCommand);
     OriginalAmountTextChangedCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOriginalAmountTextChangedCommand);
     //
     getPageDataMaterialBatch(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatInventoryItemInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     materialbatchSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutematerialbatchSelectionChangedCommand);
     //
     AccuntAmountTextChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteAccuntAmountTextChangedCommand);
     ActualAmountTextChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteActualAmounTextChangedCommand);
     //
     getInventoryMaterialBatchID();
 }
示例#14
0
 /// <summary>
 /// 初始化命令
 /// </summary>
 private void initCommand()
 {
     AddCommand            = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteAddCommand, OnCanExecuteAddCommand);
     EditCommand           = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteEditCommand, OnCanExecuteEditCommand);
     PhysicalDeleteCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutePhysicalDeleteCommand, OnCanExecutePhysicalDeleteCommand);
     RefreshCommand        = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteRefreshCommand);
     ImportCommand         = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteImportCommand, OnCanExecuteImportCommand);
     ExportCommand         = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteExportCommand, OnCanExecuteExportCommand);
     PrintCommand          = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutePrintCommand, OnCanExecutePrintCommand);
     SearchCommand         = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(OnExecuteSearchCommand);
 }
示例#15
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public ModifyPasswordViewModel()
 {
     ConfirmCommand           = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand            = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     this.ModifyPasswordModel = new ModifyPasswordModel()
     {
         UserName = GlobalData.CurrentLoginUser.UserName,
         //PassWord = GlobalData.CurrentLoginUser.PassWord,
     };
     ModifyPasswordModel.PropertyChanged += ModifyPasswordModel_PropertyChanged;
 }
示例#16
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialInStorageInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     MaterialSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteMaterialSelectionChangedCommand);
     InquantityTextChangedCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteInquantityTextChangedCommand);
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatSupplier(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
 /// <summary>
 /// 初始化命令
 /// </summary>
 private void initCommand()
 {
     AddCommand                 = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteAddCommand, OnCanExecuteAddCommand);
     EditCommand                = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteEditCommand, OnCanExecuteEditCommand);
     PhysicalDeleteCommand      = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutePhysicalDeleteCommand, OnCanExecutePhysicalDeleteCommand);
     RefreshCommand             = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteRefreshCommand);
     WorkOrderGenerateCommand   = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderGenerateCommand, OnCanExecuteWorkOrderGenerateCommand);
     WorkOrderCheckingCommand   = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderCheckingCommand, OnCanExecuteWorkOrderCheckingCommand);
     WorkOrderDistributeCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWorkOrderDistributeCommand, OnCanExecuteWorkOrderDistributeCommand);
     ImportCommand              = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteImportCommand, OnCanExecuteImportCommand);
     CancelCommand              = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialOutStorageInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     WareHouseLocationSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWareHouseLocationSelectionChangedCommand);
     MaterialSelectionChangedCommand          = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteMaterialSelectionChangedCommand);
     OutquantityTextChangedCommand            = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOutquantityTextChangedCommand);
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataWareHouseLocation(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
示例#19
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatStorageMoveInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     getStorageMoveInfoFromWareHouseLocationID();
     getStorageMoveInfoToWareHouseLocationID();
     //
     getPageDataWareHouseLocation(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MatStorageMoveInfo.StorageMoveCode  = BillCodeUtility.getStorageMoveCode();
     MatStorageMoveInfo.StorageMoveState = StorageMoveStateEnumModel.StorageMoveState.未开始;
     MatStorageMoveInfo.Operator         = GlobalData.CurrentLoginUser.UserName;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatStorageModifyInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     MatStorageModifyInfo.StorageModifyCode = BillCodeUtility.getStorageModifyCode();
     //未开始
     MatStorageModifyInfo.StorageModifyState = StorageModifyStateEnumModel.StorageModifyState.StorageModifyUnFinishState;
     MatStorageModifyInfo.Operator           = GlobalData.CurrentLoginUser.UserName;
     //
     materialbatchSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutematerialbatchSelectionChangedCommand);
     CurrentAmountTextChangedCommand      = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCurrentAmountTextChangedCommand);
     OriginalAmountTextChangedCommand     = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOriginalAmountTextChangedCommand);
     //
     getPageDataMaterialBatch(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
示例#21
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatInventoryItemInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     materialbatchSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecutematerialbatchSelectionChangedCommand);
     //
     AccuntAmountTextChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteAccuntAmountTextChangedCommand);
     ActualAmountTextChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteActualAmounTextChangedCommand);
     //
     //未开始
     MatInventoryItemInfo.InventoryState = InventoryStateEnumModel.InventoryState.InventoryUnFinishState;
     //
     getInventoryMaterialBatchID();
     //
     getPageDataMaterialBatch(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialOutStorageInfoAddViewModel2()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     MaterialSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteMaterialSelectionChangedCommand);
     OutquantityTextChangedCommand   = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOutquantityTextChangedCommand);
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MaterialOutStorageInfo.OutStorageBillCode = BillCodeUtility.getOutStorageBillCode();
     MaterialOutStorageInfo.OutStorageType     = OutStorageTypeEnumModel.OutStorageType.成品手动出库;
     MaterialOutStorageInfo.OutStorageStatus   = OutStorageStatusEnumModel.OutStorageStatus.待组盘;
     MaterialOutStorageInfo.CreateUser         = GlobalData.CurrentLoginUser.UserName;
     MaterialOutStorageInfo.AuditStatus        = AuditStatusEnumModel.AuditStatus.未审核;
 }
示例#23
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public EntSiteInfoAddViewModel()
        {
            ConfirmCommand               = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
            CancelCommand                = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
            PageCountChangedCommand      = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnPageCountChangedCommand, OnCanPageCountChangedCommand);
            PageSizeChangedCommand       = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnPageSizeChangedCommand, OnCanPageSizeChangedCommand);
            TotalPageCountChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnTotalPageCountChangedCommand, OnCanTotalPageCountChangedCommand);
            ComboxSearchCommand          = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnSearchChangedCommand, OnCanSearchChangedCommand);
            EnterpriseNameChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnEnterpriseNameChangedCommand, OnCanEnterpriseNameChangedCommand);

            PageSizeList = new List <int>()
            {
                5, 10, 20, 50
            };
            getPageData(1, 10000);
            TotalPageCount         = (int)Math.Ceiling((decimal)EnterpriseInfoList.Count() / pageSize);
            ShowEnterpriseInfoList = EnterpriseInfoList.Skip((PageCount - 1) * pageSize).Take(pageSize).ToObservableCollection <EnterpriseModel>();
        }
示例#24
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialOutStorageInfoAddViewModel1()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     WareHouseLocationSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteWareHouseLocationSelectionChangedCommand);
     OutquantityTextChangedCommand            = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOutquantityTextChangedCommand);
     //
     //getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataWareHouseLocation(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MaterialOutStorageInfo.OutStorageBillCode = BillCodeUtility.getOutStorageBillCode();
     //空托盘出库
     MaterialOutStorageInfo.OutStorageType = OutStorageTypeEnumModel.OutStorageType.PalletOutStorageType;
     //待组盘
     MaterialOutStorageInfo.OutStorageStatus = OutStorageStatusEnumModel.OutStorageStatus.OutStorageUnFinishStatus;
     MaterialOutStorageInfo.CreateUser       = GlobalData.CurrentLoginUser.UserName;
     //未审核
     MaterialOutStorageInfo.AuditStatus = AuditStatusEnumModel.AuditStatus.UnAuditStatus;
 }
        private void LoadCommands()
        {
            CloseCommand = new RelayCommand(OnClose);

            EditUserAccountCommand = new RelayCommand(OnEditUserAccount);

            DeleteUserAccountCommand = new RelayCommand(OnDelete);

            EditCustomerCommand = new RelayCommand(OnEditCustomer);

            DeleteCustomerCommand = new RelayCommand(OnDelete);



            BatchDeleteCommand = new RelayCommand(OnUserAccountBatchDelete, () =>
                                                  (UserAccountList.Count(c => c.IsSelected) > 0));



            AddUserAccountCommand = new RelayCommand(OnAddUserAccount);
        }
示例#26
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialInStorageInfoAddViewModel2()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     MaterialSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteMaterialSelectionChangedCommand);
     InquantityTextChangedCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteInquantityTextChangedCommand);
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatSupplier(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MaterialInStorageInfo.InStorageBillCode = BillCodeUtility.getInStorageBillCode();
     //原料手动入库
     MaterialInStorageInfo.InStorageType = InStorageType.MaterialManuallyInStorageType;
     //待组盘
     MaterialInStorageInfo.InStorageStatus = InStorageStatusEnumModel.InStorageStatus.InStorageUnFinishStatus;
     MaterialInStorageInfo.CreateUser      = GlobalData.CurrentLoginUser.UserName;
     //未审核
     MaterialInStorageInfo.AuditStatus = AuditStatusEnumModel.AuditStatus.UnAuditStatus;
 }
示例#27
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MaterialOutStorageInfoAddViewModel3()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     //
     MaterialSelectionChangedCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteMaterialSelectionChangedCommand);
     OutquantityTextChangedCommand   = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteOutquantityTextChangedCommand);
     //
     getPageDataMaterial(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     getPageDataMatPallet(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     MaterialOutStorageInfo.OutStorageBillCode = BillCodeUtility.getOutStorageBillCode();
     //原料自动出库演示
     MaterialOutStorageInfo.OutStorageType = OutStorageTypeEnumModel.OutStorageType.MaterialAutoShowOutStorageType;
     //待组盘
     MaterialOutStorageInfo.OutStorageStatus = OutStorageStatusEnumModel.OutStorageStatus.OutStorageUnFinishStatus;
     MaterialOutStorageInfo.CreateUser       = GlobalData.CurrentLoginUser.UserName;
     //未审核
     MaterialOutStorageInfo.AuditStatus = AuditStatusEnumModel.AuditStatus.UnAuditStatus;
     //配盘数量限制为1
     MaterialOutStorageInfo.PalletQuantity = 1;
     // MaterialOutStorageInfo.FullPalletQuantity = 6;
 }
示例#28
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatSupplierInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
 }
示例#29
0
 public DoctorDeleteViewModel()
 {
     base.IsParameterRepeatChanged = true;
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
 }
示例#30
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public EquFactoryAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public DisStepActionInfoAddViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     // getPageData(1, 200);
 }
示例#32
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public ProductionRuleInfoEditViewModel()
 {
     ConfirmCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteConfirmCommand, OnCanExecuteConfirmCommand);
     CancelCommand  = new GalaSoft.MvvmLight.CommandWpf.RelayCommand(OnExecuteCancelCommand);
     getPageData(1, 200);
 }