Esempio n. 1
0
        public string ToStringDatiAssistito(string strChiaveRecord)
        {
            //Imposto la fonte del codice dell'assistito
            string strFonteCodiceAssistito = "R";

            if (codiceAssistitoDaTesseraSanitaria)
            {
                strFonteCodiceAssistito = "T";
            }

            //Se non ho un codice assistito, non comunico neppure la provenienza del codice
            if (codiceAssistito.Equals(string.Empty))
            {
                strFonteCodiceAssistito = "";
            }

            string str = "";

            str += CodiceTargatura.PadRight(10, ' ');
            str += PeriodoCompetenza.PadRight(6, ' ');
            str += ProgressivoRicetta.ToString("00000");
            str += strFonteCodiceAssistito.PadRight(1, ' ');
            str += codiceAssistito.PadRight(30, ' ');
            str += new string(' ', 430);
            //str += NumRiga.ToString("0000000000");
            str += strChiaveRecord.PadLeft(16, '0');
            str += terminatore;

            return(str);
        }
Esempio n. 2
0
        public string ToString(string strChiaveRecord)
        {
            string str = "";

            string strDataPrescrizione = "        ";

            if (this.DataPrescrizione != null)
            {
                DateTime dtTemp = (DateTime)this.DataPrescrizione;
                strDataPrescrizione = dtTemp.ToString("yyyyMMdd");
            }

            str += CodiceTargatura.PadRight(10, ' ');
            str += PeriodoCompetenza.PadRight(6, ' ');
            str += CodiceRegionale.PadRight(10, ' ');
            str += CodiceRicetta.PadRight(10, ' ');
            str += ProgressivoRicetta.ToString("00000");
            str += Provincia.PadRight(2, ' ');
            str += Minsan.PadRight(9, ' ');
            str += Quantita.ToString("0000");
            str += Prodotto.PadRight(60, ' ');
            str += PrincipioAttivo.PadRight(100, ' ');
            str += Atc.PadRight(7, ' ');                    // 217 + 7
            str += PrezzoLordo.ToString("0000000000");      // 224 +10
            str += PrezzoNetto.ToString("0000000000");      // 234 +10
            str += ImportoCompenso.ToString("0000000000");  // 244 +10
            str += prezzoAcquisto.ToString("0000000000");   // 254 +10
            str += DataChiusura.ToString("yyyyMMdd");
            str += CodiceFarmaciaAsl.PadRight(10, ' ');     // 272 + 10
            str += PercentualeCompenso.ToString("00000");   // 282 + 5
            str += UnitaPosologiche.ToString("00000");
            str += strDataPrescrizione;                     // 292 + 8
            str += CompensoPerPezzo.ToString("0000000000"); // 300 + 10
            str += new string(' ', 179);
            str += strChiaveRecord.PadLeft(16, '0');        // 489+16
            str += terminatore;

            return(str);
        }