public override bool ShowConnectionDialog(IConnectionInfo repository, bool isNewRepository) { using (CxForm form = new CxForm((Repository)repository, isNewRepository)) { return(form.ShowDialog() == DialogResult.OK); } }
internal static void ProcessLateSubmissions() { // Get forms by user Functional Area IQueryable <Form> forms = CxForm.GetFormsByFunctionalAreaId(null); List <Form> formsList = forms.ToList(); // for each record in forms // check is exists Foms in the period defined by form Periodicity.Code foreach (Form currentForm in formsList) { switch (currentForm.FormType.FormTypeID) { case 1: ProcessLateFinancialExportForm(currentForm); break; case 2: ProcessLateFinancialForm(currentForm); break; case 5: ProcessLateHumanResourceForm(currentForm); break; case 6: ProcessLateHumanResourceQualificationForm(currentForm); break; default: break; } } }
private static void GetFormsInQueue(int?companyId, int productionUnitId, int?functionalAreaId) { // Get forms by user Functional Area IQueryable <Form> forms = CxForm.GetFormsByFunctionalAreaId(functionalAreaId); List <Form> formsList = forms.ToList(); // for each record in forms // check is exists Foms in the period defined by form Periodicity.Code foreach (Form currentForm in formsList) { switch (currentForm.FormType.FormTypeID) { case 1: GetFinancialExportFormInQueue(currentForm, productionUnitId); break; case 2: GetFinancialFormInQueue(currentForm, productionUnitId); break; case 5: GetHumanResourceFormInQueue(currentForm, productionUnitId); break; case 6: GetHumanResourceQualificationFormInQueue(currentForm, productionUnitId); break; default: break; } } }
private void GetZEEFormsInQueue(int?functionalAreaId) { // for each record in forms // get forms by Functional Area IQueryable <Form> forms = CxForm.GetFormsByFunctionalAreaId(functionalAreaId); List <Form> formsList = forms.ToList(); foreach (Form currentForm in formsList) { switch (currentForm.FormType.FormTypeID) { case 3: GetOperationalLicensesFormInQueue(currentForm); break; case 4: GetOperationalFormInQueue(currentForm); break; case 7: GetZEEFinancialFormInQueue(currentForm); break; case 8: GetZEEHumanResourceFormInQueue(currentForm); break; default: break; } } }
private void DeleteRecord(int code) { CxForm.DeleteRecord(code); BackPanel.Visible = true; ConfirmButtonPanel.Visible = false; DetailPanel.Visible = false; ShowInfo(MessagePanel, Resources.Resource.mRecordDeleteOK); }
private void CreateRecord(string description, string smallDescription, int periodicityId, int formTypeId) { if (periodicityId == 0) { throw new Exception(Resources.Resource.mPeriodicityMandatory); } CxForm.CreateRecord(description, smallDescription, periodicityId, formTypeId, int.Parse(SliderAlarmUser.Text), int.Parse(SliderAlarmManager.Text), int.Parse(SliderAlarmExecutive.Text)); BackPanel.Visible = true; ConfirmButtonPanel.Visible = false; DetailPanel.Visible = false; ShowInfo(MessagePanel, Resources.Resource.mRecordCreateOK); }
/// <summary> /// /// </summary> /// <param name="InitialVersion">The initial version of the Swf file</param> public PlaceObject(byte InitialVersion) : base(InitialVersion) { this._TransformMatrix = new Matrix(this._SwfVersion); this._ColorTransform = new CxForm(this._SwfVersion); }