private void InitAttachmentsRecommendation() { if (!DisplaySendProperties) { tblInfo.Visible = false; } else { //display recommendations for sending attachments for 'Sample' Type load: var pegasys_doc_type = DocNumber.Substring(0, 2); var recommendedAttachments = Document.RecommendedAttachments(pegasys_doc_type); if (!recommendedAttachments.Any()) { lblPegasysDocTypeNote.Visible = true; lblPegasysDocTypeNote.Text = "There is no attachments recommendation in the system for Document type " + pegasys_doc_type; } else { var firstRecommendedAttachments = recommendedAttachments.First(); if (firstRecommendedAttachments.Notes == "") { lblPegasysDocTypeNote.Visible = false; } else { lblPegasysDocTypeNote.Visible = true; lblPegasysDocTypeNote.Text = "(" + firstRecommendedAttachments.Notes + ")"; } lblPegasysDocType.Text = pegasys_doc_type; lblRequiredForTotal.Text = firstRecommendedAttachments.TotalDocTypeDesc; lblRequiredForUDO.Text = firstRecommendedAttachments.DODocTypeDesc; } } }
/// <summary> /// заполнить поля ввода /// </summary> public void Init() { LbTitle.Text = Title; toolTip1.SetToolTip(LbTitle, Title); lbDocNumber.Text = DocNumber.ToString(); lbTome.Text = Tome.ToString(); LbStartPage.Text = PageStart.ToString(); ChangeHeight(); }
public void UpgateView() { if (!string.IsNullOrWhiteSpace(NameDoc)) { lbTome.Text = Tome.ToString(); lbNumber.Text = DocNumber.ToString(); LbTitleDocument.Text = NameDoc; LbStartPage.Text = "стр. " + PageStart.ToString(); } }
/// <summary> /// Сравнение объектов /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(IOrgItem other) { if (other is Employee) { Employee otherEmployee = other as Employee; return(Id.Equals(otherEmployee.Id) && DepartmentID.Equals(otherEmployee.DepartmentID) && SurName.Equals(otherEmployee.SurName) && FirstName.Equals(otherEmployee.FirstName) && Patronymic.Equals(otherEmployee.Patronymic) && DateOfBirth.Equals(otherEmployee.DateOfBirth) && DocSeries.Equals(otherEmployee.DocSeries) && DocNumber.Equals(otherEmployee.DocNumber) && Position.Equals(otherEmployee.Position)); } return(false); }
public string getDocumentNumber() { //string documentNumber = "№ " + DepartmentRegistrator.Name + "-" + DocNumberYear.ToString() + "/" + DocNumber.ToString(); // +DocNumberModificator; string documentNumber; if (String.IsNullOrEmpty(DepartmentRegistrator.PostCode)) { documentNumber = DocNumber.ToString() + "/" + DepartmentRegistrator.Code + "-" + DocNumberYear.ToString().Substring(2, 2); // +DocNumberModificator; } else { documentNumber = DocNumber.ToString() + "/" + DepartmentRegistrator.PostCode + "-" + DocNumberYear.ToString().Substring(2, 2); // +DocNumberModificator; } return(documentNumber); }