コード例 #1
0
        public ClientPretensionModel(ClientPretension pretension)
        {
            this.sevenSimbolGeneraton = pretension.sevenSimbolGeneration;
            this.Generator            = pretension.Generator;
            this.ClientId             = pretension.ClientID;
            this.LPU_ID          = pretension.LPU_ID;
            this.DATE_IN         = pretension.DATE_IN;
            this.M_nakt          = pretension.M_nakt;
            this.M_dakt          = pretension.M_dakt;
            this.M_dakt2         = pretension.M_dakt;
            this.M_expert_Id     = pretension.M_expert_Id;
            this.MedicalCenterId = pretension.MedicalCenterId;
            this.M_mo            = pretension.M_mo;   //
            this.M_mcod          = pretension.M_mcod; //
            this.M_period        = pretension.M_period;
            this.M_snpol         = pretension.M_snpol;
            this.M_fd            = pretension.M_fd;
            this.M_nd1           = pretension.M_nd1;
            this.M_nd2           = pretension.M_nd2;
            this.IsConfirm       = pretension.IsConfirm;
            this.M_osn230_Id     = pretension.M_osn230_Id;
            this.M_straf         = pretension.M_straf;
            this.PeriodFrom      = pretension.PeriodFrom;
            this.PeriodTo        = pretension.PeriodTo;
            this.Coefficient     = pretension.Coefficient;
            this.UserId          = pretension.UserId;
            this.UserFIO         = pretension.UserFIO;                                       //
            this.CreateDate      = pretension.CreateDate;
            this.UserPosition    = pretension.UserPosition;                                  //
            this.UpdateUserId    = pretension.UpdateUserId;
            this.UpdateUserFIO   = pretension.UpdateUserFIO;                                 //
            this.UpdateDate      = pretension.UpdateDate ?? (DateTime)pretension.UpdateDate; //

            this.FileNameLPU = pretension.FileNameLPU ?? string.Empty;
            this.FileName2   = pretension.FileName2 ?? string.Empty;
            this.FileUrlLPU  = pretension.FileUrlLPU ?? string.Empty;
            this.FileUrl2    = pretension.FileUrl2 ?? string.Empty;

            IsExistFileLPU = System.IO.File.Exists(Path.Combine(ConfiguraionProvider.FileStorageFolder, this.FileUrlLPU));
            if (IsExistFileLPU)
            {
                this.SizeFileLPU = GetFileSizeToString((float)new System.IO.FileInfo(Path.Combine(ConfiguraionProvider.FileStorageFolder, this.FileUrlLPU)).Length);
            }

            IsExistFile2 = System.IO.File.Exists(Path.Combine(ConfiguraionProvider.FileStorageFolder, this.FileUrl2));
            if (IsExistFile2)
            {
                this.SizeFile2 = GetFileSizeToString((float)new System.IO.FileInfo(Path.Combine(ConfiguraionProvider.FileStorageFolder, this.FileUrl2)).Length);
            }

            M_expertS = ReferencesProvider.GetExpert(true);
            M_osn230  = ReferencesProvider.GetCodeDefect(true);
        }
コード例 #2
0
 public ClientPretensionModel()
 {
     this.M_expertS = ReferencesProvider.GetExpert(true);
     this.M_osn230  = ReferencesProvider.GetCodeDefect(true);
 }