public override sealed void DrawControls() { int top = 42; top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; MainProcess.CreateLabel("³��������� �����", 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; currentNomenclatureLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; MainProcess.CreateLabel("��� ������", 10, top, 100, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular); currentStickerIdTextBox = MainProcess.CreateTextBox(120, top, 80, string.Empty, ControlsStyle.LabelNormal, palletCodeEntered, false); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 3; printTaskLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 2; complateButton = MainProcess.CreateButton("������������ (F4)", 5, top, 230, 35, string.Empty, complateProcess); updatePrintTask(); }
public override sealed void DrawControls() { if (isLoading) { int tableHeight = 230; selectedInfo = MainProcess.CreateLabel( "<не обрано>", 0, 60, 240, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Info); visualTable = MainProcess.CreateTable("Table", tableHeight, 85); visualTable.DT = sourceTable; visualTable.OnChangeSelectedRow += visualTable_OnChangeSelectedRow; visualTable.AddColumn(headerOfDescriptionColumn, DESCRIPTION_COLUMN, 194); visualTable.AddColumn(string.Empty, VALUE_COLUMN, 20); visualTable.OnRowSelected += visualTable_OnRowSelected; if (listOfElements != null) { foreach (TableData element in listOfElements) { visualTable.AddRow(element.Description, element.Value, element.Id); } } visualTable.Focus(); } }
public override sealed void DrawControls() { int top = 42; top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; MainProcess.CreateLabel("Відскануйте піддон", 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; currentNomenclatureLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; MainProcess.CreateLabel("Код палети", 10, top, 100, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular); currentStickerIdTextBox = MainProcess.CreateTextBox(120, top, 80, string.Empty, ControlsStyle.LabelNormal, palletCodeEntered, false); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 3; printTaskLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 2; complateButton = MainProcess.CreateButton("Роздрукувати (F4)", 5, top, 230, 35, string.Empty, complateProcess); updatePrintTask(); }
public override sealed void DrawControls() { int top = 42; top = 230; taskLabel = MainProcess.CreateLabel("�������� ������", 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); }
private void DrawForm2Controls() { MainProcess.CreateLabel("Прийнято шт.:", 8, 70, 136, ControlsStyle.LabelNormal); acceptedLabel = (MobileLabel)MainProcess.CreateLabel("0", 144, 70, 60, ControlsStyle.LabelNormal); lastBarcodeLabel = (MobileLabel)MainProcess.CreateLabel("", 20, 150, 150, ControlsStyle.LabelLarge); }
public override sealed void DrawControls() { int top = 42; top = 230; taskLabel = MainProcess.CreateLabel("Скануйте палету", 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); }
public override sealed void DrawControls() { if (IsLoad) { object idObj = getAcceptanceDoc(); if (idObj != null) { documentId = idObj; acceptanceDoc.Read <AcceptanceOfNewComponents>(documentId); string caseModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.CaseModel); string lampModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.LampModel); string unitModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.UnitModel); caseModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.CaseModel); lampModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.LampModel); unitModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.UnitModel); if (acceptanceDoc.CaseModel == 0) { selectedModelRef = acceptanceDoc.LampModel == 0 ? unitModelRef : lampModelRef; } else { selectedModelRef = caseModelRef; } const string emptyModel = "-"; MainProcess.CreateLabel( string.Concat("Корпус: ", string.IsNullOrEmpty(caseModel) ? emptyModel : caseModel) , 5, 95, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); MainProcess.CreateLabel( string.Concat("Лампа: ", string.IsNullOrEmpty(lampModel) ? emptyModel : lampModel) , 5, 130, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); MainProcess.CreateLabel( string.Concat("Блок: ", string.IsNullOrEmpty(unitModel) ? emptyModel : unitModel) , 5, 165, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); labelOfCount = MainProcess.CreateLabel("0", 0, 215, 240, MobileFontSize.Large, MobileFontPosition.Center, MobileFontColors.Info); MainProcess.CreateButton("Завершити приймання", 15, 275, 210, 35, "ok", ok_Click); } else { MainProcess.CreateLabel( "Не знайдено жодного відкритого документа \"Прийомка нового комплектуючого\" для обраного типу!", 5, 115, 230, 150, MobileFontSize.Multiline, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); } } }
public override sealed void DrawControls() { int top = 42; top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; infoLabel = MainProcess.CreateLabel(string.Empty, 0, top, 240, MobileFontSize.Little, MobileFontPosition.Center, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; additionalInfoLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top = 230; taskLabel = MainProcess.CreateLabel(string.Empty, 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 2; MainProcess.CreateLabel("���������� �������� - Esc", 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Default, FontStyle.Regular); showStartProcessMessage(); }
public override sealed void DrawControls() { int top = 42; top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; infoLabel = MainProcess.CreateLabel(string.Empty, 0, top, 240, MobileFontSize.Little, MobileFontPosition.Center, MobileFontColors.Default, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS; additionalInfoLabel = MainProcess.CreateLabel(string.Empty, 10, top, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold); top = 230; taskLabel = MainProcess.CreateLabel(string.Empty, 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); top += VERTICAL_DISTANCE_BETWEEN_CONTROLS * 2; MainProcess.CreateLabel("Завершення операції - Esc", 10, top, 220, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Default, FontStyle.Regular); showStartProcessMessage(); }
public override sealed void DrawControls() { if (isLoading) { int tableHeight = 230; selectedInfo = MainProcess.CreateLabel( "<�� ������>", 0, 60, 240, MobileFontSize.Normal, MobileFontPosition.Center, MobileFontColors.Info); visualTable = MainProcess.CreateTable("Table", tableHeight, 85); visualTable.DT = sourceTable; visualTable.OnChangeSelectedRow += visualTable_OnChangeSelectedRow; visualTable.AddColumn(headerOfDescriptionColumn, DESCRIPTION_COLUMN, 194); visualTable.AddColumn(string.Empty, VALUE_COLUMN, 20); visualTable.OnRowSelected += visualTable_OnRowSelected; if (listOfElements != null) { foreach (TableData element in listOfElements) { visualTable.AddRow(element.Description, element.Value, element.Id); } } visualTable.Focus(); } }
void ReleaseDesignerOutlets() { if (Address1Label != null) { Address1Label.Dispose(); Address1Label = null; } if (Address2Label != null) { Address2Label.Dispose(); Address2Label = null; } if (AdvisorImage != null) { AdvisorImage.Dispose(); AdvisorImage = null; } if (BranchLabel != null) { BranchLabel.Dispose(); BranchLabel = null; } if (CheckInButton != null) { CheckInButton.Dispose(); CheckInButton = null; } if (ConfNumLabel != null) { ConfNumLabel.Dispose(); ConfNumLabel = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (FullNameLabel != null) { FullNameLabel.Dispose(); FullNameLabel = null; } if (MobileLabel != null) { MobileLabel.Dispose(); MobileLabel = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } if (PurposeLabel != null) { PurposeLabel.Dispose(); PurposeLabel = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (TimeLabel != null) { TimeLabel.Dispose(); TimeLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
public override sealed void DrawControls() { if (IsLoad) { object idObj = getAcceptanceDoc(); if (idObj != null) { documentId = idObj; acceptanceDoc.Read<AcceptanceOfNewComponents>(documentId); string caseModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.CaseModel); string lampModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.LampModel); string unitModel = CatalogObject.GetDescription(typeof(Models).Name, acceptanceDoc.UnitModel); caseModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.CaseModel); lampModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.LampModel); unitModelRef = CatalogObject.GetSyncRef(typeof(Models).Name, acceptanceDoc.UnitModel); if (acceptanceDoc.CaseModel == 0) { selectedModelRef = acceptanceDoc.LampModel == 0 ? unitModelRef : lampModelRef; } else { selectedModelRef = caseModelRef; } const string emptyModel = "-"; MainProcess.CreateLabel( string.Concat("Корпус: ", string.IsNullOrEmpty(caseModel) ? emptyModel : caseModel) , 5, 95, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); MainProcess.CreateLabel( string.Concat("Лампа: ", string.IsNullOrEmpty(lampModel) ? emptyModel : lampModel) , 5, 130, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); MainProcess.CreateLabel( string.Concat("Блок: ", string.IsNullOrEmpty(unitModel) ? emptyModel : unitModel) , 5, 165, 230, MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default); labelOfCount = MainProcess.CreateLabel("0", 0, 215, 240, MobileFontSize.Large, MobileFontPosition.Center, MobileFontColors.Info); MainProcess.CreateButton("Завершити приймання", 15, 275, 210, 35, "ok", ok_Click); } else { MainProcess.CreateLabel( "Не знайдено жодного відкритого документа \"Прийомка нового комплектуючого\" для обраного типу!", 5, 115, 230, 150, MobileFontSize.Multiline, MobileFontPosition.Center, MobileFontColors.Warning, FontStyle.Bold); } } }
void ReleaseDesignerOutlets() { if (AddressLine1Label != null) { AddressLine1Label.Dispose(); AddressLine1Label = null; } if (AppointmentDateTimeLabel != null) { AppointmentDateTimeLabel.Dispose(); AppointmentDateTimeLabel = null; } if (AppointmentStackView != null) { AppointmentStackView.Dispose(); AppointmentStackView = null; } if (AssignButton != null) { AssignButton.Dispose(); AssignButton = null; } if (CallHomeButton != null) { CallHomeButton.Dispose(); CallHomeButton = null; } if (CallMobileButton != null) { CallMobileButton.Dispose(); CallMobileButton = null; } if (CallWorkButton != null) { CallWorkButton.Dispose(); CallWorkButton = null; } if (CityStateZipLabel != null) { CityStateZipLabel.Dispose(); CityStateZipLabel = null; } if (ComposeEmailButton != null) { ComposeEmailButton.Dispose(); ComposeEmailButton = null; } if (ConsentLabel != null) { ConsentLabel.Dispose(); ConsentLabel = null; } if (ConsentStackView != null) { ConsentStackView.Dispose(); ConsentStackView = null; } if (ContactPreferenceLabel != null) { ContactPreferenceLabel.Dispose(); ContactPreferenceLabel = null; } if (DetailStackView != null) { DetailStackView.Dispose(); DetailStackView = null; } if (EmailButton != null) { EmailButton.Dispose(); EmailButton = null; } if (EmailStackView != null) { EmailStackView.Dispose(); EmailStackView = null; } if (ExcludeStackView != null) { ExcludeStackView.Dispose(); ExcludeStackView = null; } if (HomeLabel != null) { HomeLabel.Dispose(); HomeLabel = null; } if (HomeStackView != null) { HomeStackView.Dispose(); HomeStackView = null; } if (MessageButton != null) { MessageButton.Dispose(); MessageButton = null; } if (MessageLabel != null) { MessageLabel.Dispose(); MessageLabel = null; } if (MobileLabel != null) { MobileLabel.Dispose(); MobileLabel = null; } if (MobileStackView != null) { MobileStackView.Dispose(); MobileStackView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (PhoneButton != null) { PhoneButton.Dispose(); PhoneButton = null; } if (PreferenceLabel != null) { PreferenceLabel.Dispose(); PreferenceLabel = null; } if (PreferenceStackView != null) { PreferenceStackView.Dispose(); PreferenceStackView = null; } if (ProspectTabBar != null) { ProspectTabBar.Dispose(); ProspectTabBar = null; } if (SeparatorLineLabel1 != null) { SeparatorLineLabel1.Dispose(); SeparatorLineLabel1 = null; } if (SeparatorLineLabel2 != null) { SeparatorLineLabel2.Dispose(); SeparatorLineLabel2 = null; } if (StreetAddressStackView != null) { StreetAddressStackView.Dispose(); StreetAddressStackView = null; } if (WorkLabel != null) { WorkLabel.Dispose(); WorkLabel = null; } if (WorkStackView != null) { WorkStackView.Dispose(); WorkStackView = null; } }