Beispiel #1
0
        ///<summary>Reads the X12 835 text in the MessageText variable and displays the information from Table 2 (Detail).</summary>
        private void FillClaimDetails()
        {
            List <string> claimTrackingNumbers = x835.GetClaimTrackingNumbers();

            gridClaimDetails.BeginUpdate();
            gridClaimDetails.Columns.Clear();
            ODGridColumn col;
            int          variableWidth = this.Width - 2 * gridClaimDetails.Left;
            const int    amountWidth   = 80;

            col = new ODGridColumn(Lan.g(this, "Amount"), amountWidth, HorizontalAlignment.Center);
            gridClaimDetails.Columns.Add(col);
            //variableWidth-=amountWidth;
            //const int statusWidth=54;
            //col=new ODGridColumn(Lan.g(this,"Status"),statusWidth,HorizontalAlignment.Center);
            //gridMain.Columns.Add(col);
            //variableWidth-=statusWidth;
            //const int lnameWidth=150;
            //const int fnameWidth=100;
            //const int claimIdWidth=100;
            //const int payorControlNumWidth=126;
            //variableWidth+=-lnameWidth-fnameWidth-claimIdWidth-payorControlNumWidth;
            //col=new ODGridColumn(Lan.g(this,"Reason"),variableWidth);
            //gridMain.Columns.Add(col);
            //col=new ODGridColumn(Lan.g(this,"LName"),lnameWidth);
            //gridMain.Columns.Add(col);
            //col=new ODGridColumn(Lan.g(this,"FName"),fnameWidth);
            //gridMain.Columns.Add(col);
            //col=new ODGridColumn(Lan.g(this,"ClaimIdentifier"),claimIdWidth);
            //gridMain.Columns.Add(col);
            //col=new ODGridColumn(Lan.g(this,"PayorControlNum"),payorControlNumWidth);
            //gridMain.Columns.Add(col);
            //gridMain.Rows.Clear();
            //for(int i=0;i<claimTrackingNumbers.Count;i++) {
            //  string[] claimInfo=x277.GetClaimInfo(claimTrackingNumbers[i]);
            //  ODGridRow row=new ODGridRow();
            //  row.Cells.Add(new ODGridCell(claimInfo[6]));//service date start
            //  if(showServiceDateRange) {
            //    row.Cells.Add(new ODGridCell(claimInfo[7]));//service date end
            //  }
            //  string claimStatus="";
            //  decimal claimAmount=PIn.Decimal(claimInfo[9]);
            //  if(claimInfo[3]=="A") {
            //    claimStatus="Accepted";
            //    numAccepted++;
            //    amountAccepted+=claimAmount;
            //  }
            //  else if(claimInfo[3]=="R") {
            //    claimStatus="Rejected";
            //    numRejected++;
            //    amountRejected+=claimAmount;
            //  }
            //  row.Cells.Add(new ODGridCell(claimAmount.ToString("F")));//amount
            //  row.Cells.Add(new ODGridCell(claimStatus));//status
            //  row.Cells.Add(new ODGridCell(claimInfo[8]));//reason
            //  row.Cells.Add(new ODGridCell(claimInfo[0]));//lname
            //  row.Cells.Add(new ODGridCell(claimInfo[1]));//fname
            //  row.Cells.Add(new ODGridCell(claimTrackingNumbers[i]));//claim identifier
            //  row.Cells.Add(new ODGridCell(claimInfo[4]));//payor control number
            //  gridMain.Rows.Add(row);
            //}
            //gridMain.EndUpdate();
            //textQuantityAccepted.Text=numAccepted.ToString();
            //textQuantityRejected.Text=numRejected.ToString();
            //textAmountAccepted.Text=amountAccepted.ToString("F");
            //textAmountRejected.Text=amountRejected.ToString("F");
        }