/// <summary> Показать окно Перевода вызова</summary>
        private void ShowCallTransferWindow()
        {
            var windowCallRedirect = FactoryWindow.GetWindowCallRedirect(_viewModelCallActive.CurrentModelCall);

            windowCallRedirect.Owner = WindowMain.CurrentMainWindow;

            windowCallRedirect.ShowDialog();
        }
        /// <summary> Экспортировать в файл с вызовом окна пароля </summary>
        private void SaveAs()
        {
            var windowPasswordBox = FactoryWindow.GetWindowPasswordBox(PasswordBoxTypeEnum.Export);

            windowPasswordBox.Owner = WindowMain.CurrentMainWindow;

            windowPasswordBox.ShowDialog();
        }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        playerAttributeControlData = gameObject.GetComponent <PlayerAttributeControl>();

        researchObject         = GameObject.Find("00_GuiStuff");
        menuResearchWindowData = researchObject.GetComponent <ResearchWindow>();
        menuStorageWindowData  = researchObject.GetComponent <StorageWindow>();
        menuFactoryWindowData  = researchObject.GetComponent <FactoryWindow>();
    }     // END Start
	// Use this for initialization
	void Start () {
        
        playerAttributeControlData = gameObject.GetComponent<PlayerAttributeControl>();

        researchObject = GameObject.Find("00_GuiStuff");
        menuResearchWindowData = researchObject.GetComponent<ResearchWindow>();
        menuStorageWindowData = researchObject.GetComponent<StorageWindow>();
        menuFactoryWindowData = researchObject.GetComponent<FactoryWindow>();

	} // END Start
Beispiel #5
0
        private void mnuSupplierAdd_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <MBaseModel> arr = new ObservableCollection <MBaseModel>();

            String        caption = lookupTypeToCaption(Lookup);
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ParentItemSources = arr;
            FactoryWindow.ShowWindow("WinAddEditSupplier", param);
        }
Beispiel #6
0
        private void mnuServiceAddOther_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <MBaseModel> arr = new ObservableCollection <MBaseModel>();

            String        caption = CLanguage.getValue("add") + " " + CLanguage.getValue("service");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = ((int)ServiceLevel.ServiceLevelOther).ToString();
            param.Mode              = "A";
            param.ParentItemSources = arr;
            FactoryWindow.ShowWindow("WinAddEditService", param);
        }
Beispiel #7
0
        private void mnuInventoryAdd_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <MBaseModel> arr = new ObservableCollection <MBaseModel>();

            String        caption = CLanguage.getValue("add") + " " + CLanguage.getValue("inventory_item");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = "";
            param.Mode              = "A";
            param.ParentItemSources = arr;
            FactoryWindow.ShowWindow("WinAddEditInventoryItem", param);
        }
        public void ShowEditWindowEx(MVStockCostDocument actDoc)
        {
            if (!CHelper.VerifyAccessRight("PURCHASE_COST_EDIT"))
            {
                return;
            }

            CWinLoadParam param = new CWinLoadParam();

            param.Caption    = CLanguage.getValue("ap_stock_cost");
            param.Mode       = "E";
            param.ActualView = actDoc;
            FactoryWindow.ShowWindow("WinAddEditCostDocument", param);
        }
Beispiel #9
0
        public void ShowEditWindowEx(MVOTDocument actDoc)
        {
            if (!CHelper.VerifyAccessRight("HR_OT_VIEW"))
            {
                return;
            }

            CWinLoadParam param = new CWinLoadParam();

            param.Caption     = CLanguage.getValue("edit") + " " + CLanguage.getValue("hr_ot_form");
            param.Mode        = "E";
            param.GenericType = actDoc.EmployeeType;
            param.ActualView  = actDoc;
            FactoryWindow.ShowWindow("WinAddEditOtDoc", param);
        }
Beispiel #10
0
        private void mnuEmployeeAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("GENERAL_EMPLOYEE_ADD"))
            {
                return;
            }

            String        caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("employee");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ParentItemSources = new ObservableCollection <MBaseModel>();
            FactoryWindow.ShowWindow("WinAddEditEmployeeInfo", param);
        }
Beispiel #11
0
        private void mnuProjectAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("GENERAL_PROJECT_ADD"))
            {
                return;
            }

            String        caption = CLanguage.getValue("add") + " " + lookupTypeToCaption(Lookup);
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ParentItemSources = new ObservableCollection <MBaseModel>();
            FactoryWindow.ShowWindow("WinAddEditProject", param);
        }
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("PURCHASE_COST_ADD"))
            {
                return;
            }

            CWinLoadParam param = new CWinLoadParam();

            param.Caption           = CLanguage.getValue("ap_stock_cost");
            param.Mode              = "A";
            param.GenericType       = "1";
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditCostDocument", param);
        }
Beispiel #13
0
        private void MnuMasterRefEdit_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("HR_ORGCHART_VIEW"))
            {
                return;
            }

            CWinOrgChartLoadParam param = new CWinOrgChartLoadParam();

            param.Mode              = "E";
            param.ActualView        = currentViewObj;
            param.GenericType       = currentViewObj.Category;
            param.ParentItemSources = vw.CurrentItemSource;
            param.CurrentPaths      = vw.CurrentPath;
            FactoryWindow.ShowWindow("WinAddEditOrgChart", param);
        }
        private void showEditWindow()
        {
            if (!CHelper.VerifyAccessRight("GENERAL_PROJECT_VIEW"))
            {
                return;
            }

            String        caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("project");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "E";
            param.ActualView        = currentObj;
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditProject", param);
        }
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("GENERAL_PROJECT_ADD"))
            {
                return;
            }

            String        caption = CLanguage.getValue("add") + " " + CLanguage.getValue("project");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ActualView        = currentObj;
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditProject", param);
        }
Beispiel #16
0
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("ADMIN_GROUP_ADD"))
            {
                return;
            }

            String caption = CLanguage.getValue("add") + " " + CLanguage.getValue("user_group");

            CWinLoadParam param = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditUserGroup", param);
        }
Beispiel #17
0
        private void cmdAddInternal_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("CASH_XFER_ADD"))
            {
                return;
            }

            CWinLoadParam param = new CWinLoadParam();

            param.Caption           = CLanguage.getValue("add") + " " + CLanguage.getValue("Trans");
            param.GenericType       = ((int)docType).ToString();
            param.Mode              = "A";
            param.ParentItemSources = itemSources;
            param.ActualView        = currentObj;
            FactoryWindow.ShowWindow("WinAddEditCashTransfer", param);
        }
Beispiel #18
0
        private void showAccessRightWindow()
        {
            if (!CHelper.VerifyAccessRight("ADMIN_GROUP_VIEW"))
            {
                return;
            }

            String caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("user_group");

            CWinLoadParam param = new CWinLoadParam();

            param.Caption    = caption;
            param.Mode       = "E";
            param.ActualView = currentObj;
            FactoryWindow.ShowWindow("WinAddEditGroupAccessRight", param);
        }
Beispiel #19
0
        private void CmdAllowanceAdd_Click(object sender, RoutedEventArgs e)
        {
            CWinLoadParam param = new CWinLoadParam();

            param.Caption          = CLanguage.getValue("add") + " " + CLanguage.getValue("hr_allowance_form");
            param.Mode             = "A";
            param.ActualParentView = mv;
            param.GenericType      = loadParam.GenericType;
            Boolean okClick = FactoryWindow.ShowWindow("WinAddEditPayrollExpenseItem", param);

            if (okClick)
            {
                (vw as MVOTDocument).CalculateTotalFields();
                vw.IsModified = true;
            }
        }
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("HR_LEAVE_ADD"))
            {
                return;
            }

            String caption = CLanguage.getValue("add") + " " + CLanguage.getValue("employee");

            CWinLoadParam param = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "A";
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditEmployeeInfo", param);
        }
Beispiel #21
0
        private void MnuDaily_Click(object sender, RoutedEventArgs e)
        {
            CWinLoadParam param = new CWinLoadParam();
            MenuItem      mnu   = (MenuItem)sender;

            param.Caption          = CLanguage.getValue("add") + " " + CLanguage.getValue("hr_ot_form");
            param.Mode             = "A";
            param.ActualParentView = mv;
            param.GenericType      = (string)mnu.Tag;
            Boolean okClick = FactoryWindow.ShowWindow("WinAddEditOtDocItem", param);

            if (okClick)
            {
                (vw as MVOTDocument).CalculateTotalFields();
                vw.IsModified = true;
            }
        }
Beispiel #22
0
        private void showEditDeductWindow()
        {
            CWinLoadParam param = new CWinLoadParam();

            param.Caption          = CLanguage.getValue("edit") + " " + CLanguage.getValue("deduction_type");
            param.Mode             = "E";
            param.ActualParentView = mv;
            param.ActualView       = currentDeductionViewObj;
            param.GenericType      = loadParam.GenericType;
            Boolean okClick = FactoryWindow.ShowWindow("WinAddEditPayrollDeductItem", param);

            if (okClick)
            {
                (vw as MVOTDocument).CalculateTotalFields();
                vw.IsModified = true;
            }
        }
        private void showEditWindow()
        {
            if (!CHelper.VerifyAccessRight("INVENTORY_ITEM_VIEW"))
            {
                return;
            }

            String        caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("inventory_item");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = "";
            param.Mode              = "E";
            param.ActualView        = currentViewObj;
            param.ParentItemSources = itemsSourceGrid;
            FactoryWindow.ShowWindow("WinAddEditInventoryItem", param);
        }
Beispiel #24
0
        private void ShowEditWindow()
        {
            String        caption = ItemText;
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption          = CLanguage.getValue("edit") + " " + caption;
            param.Mode             = "E";
            param.ActualParentView = mv;
            param.ActualView       = currentViewObj;
            param.GenericType      = loadParam.GenericType;
            bool isModified = FactoryWindow.ShowWindow("WinAddEditBorrowReturnItem", param);

            if (isModified)
            {
                vw.IsModified = true;
            }
        }
Beispiel #25
0
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("INVENTORY_ITEM_ADD"))
            {
                return;
            }

            String        caption = CLanguage.getValue("add") + " " + CLanguage.getValue("inventory_item");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = "";
            param.Mode              = "A";
            param.ActualView        = currentObj;
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditInventoryItem", param);
        }
Beispiel #26
0
        private void showEditWindow()
        {
            CWinLoadParam param = new CWinLoadParam();

            param.Caption          = loadParam.Caption;
            param.Mode             = "E";
            param.ActualParentView = mv;
            param.ActualView       = currentViewObj;
            param.GenericType      = loadParam.GenericType;
            Boolean okClick = FactoryWindow.ShowWindow("WinAddEditPayrollDocItem", param);

            if (okClick)
            {
                (vw as MVPayrollDocument).CalculateTotalFields();
                vw.IsModified = true;
            }
        }
Beispiel #27
0
        private void CmdAdd_Click(object sender, RoutedEventArgs e)
        {
            CWinLoadParam param = new CWinLoadParam();

            param.Caption          = loadParam.Caption;
            param.Mode             = "A";
            param.ActualParentView = mv;
            param.GenericType      = loadParam.GenericType;
            //param.ActualView = actDoc;
            Boolean okClick = FactoryWindow.ShowWindow("WinAddEditPayrollDocItem", param);

            if (okClick)
            {
                (vw as MVPayrollDocument).CalculateTotalFields();
                vw.IsModified = true;
            }
        }
        /// <summary> Копировать ключ в буфер обмена </summary>
        private void ButtonCopyToClipboard_Click(object sender, RoutedEventArgs e)
        {
            var windowPasswordBox = FactoryWindow.GetWindowPasswordBox(PasswordBoxTypeEnum.ExportToClipboard);

            windowPasswordBox.Owner = WindowMain.CurrentMainWindow;

            windowPasswordBox.ShowDialog();

            if ((windowPasswordBox.ViewUserControl as ViewPasswordBox).Result)
            {
                var encryptionkey = _viewModelUserSettings.GetUserPrivateKey();
                Clipboard.Clear();
                Clipboard.SetText(encryptionkey);

                WindowStartup.Instance.ShowMessageTray(Application.Current.TryFindResource(@"ViewUserSettings_ExportSucced") as string);
            }
        }
        private void showEditWindow()
        {
            if (!CHelper.VerifyAccessRight("HR_LEAVE_VIEW"))
            {
                return;
            }

            String caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("employee");

            CWinLoadParam param = new CWinLoadParam();

            param.Caption           = caption;
            param.Mode              = "E";
            param.ActualView        = currentObj;
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditEmployeeLeave", param);
        }
Beispiel #30
0
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight(getPermissionKey("A", docType)))
            {
                return;
            }

            String        caption = CLanguage.getValue("edit") + " " + CLanguage.getValue(getCaptionKey(docType));
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = ((int)docType).ToString();
            param.Mode              = "A";
            param.ParentItemSources = itemSources;
            param.ActualView        = currentObj;
            FactoryWindow.ShowWindow("WinAddEditCashInOut", param);
        }
        private void showEditWindow()
        {
            if (!CHelper.VerifyAccessRight("SALE_SERVICE_VIEW"))
            {
                return;
            }

            String        caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("service");
            CWinLoadParam param   = new CWinLoadParam();

            param.Caption           = caption;
            param.GenericType       = level;
            param.Mode              = "E";
            param.ActualView        = currentObj;
            param.ParentItemSources = itemSources;
            FactoryWindow.ShowWindow("WinAddEditService", param);
        }
	// Use this for initialization
	void Awake () {

        factoryWindowData = GameObject.Find("00_GuiStuff").GetComponent<FactoryWindow>();
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent<PlayerAttributeControl>();
        taskWaitListWindowData = GameObject.Find("00_GuiStuff").GetComponent<TaskWaitListWindow>();
	}
 // Use this for initialization
 void Start()
 {
     factoryWindowData = GetComponent<FactoryWindow>();
     testContainerObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("TaskListWindow").gameObject.transform.FindChild("Scroll View").gameObject.transform.FindChild("TaskContainer").gameObject;
         //transform.GetChild(1).gameObject.transform.GetChild(1).gameObject;
 }