Exemplo n.º 1
0
		private void FormEtransEdit_Load(object sender,EventArgs e) {
			MessageText=EtransMessageTexts.GetMessageText(EtransCur.EtransMessageTextNum);
			textMessageText.Text=MessageText;
			textDateTimeTrans.Text=EtransCur.DateTimeTrans.ToString();
			textClaimNum.Text=EtransCur.ClaimNum.ToString();
			textBatchNumber.Text=EtransCur.BatchNumber.ToString();
			textTransSetNum.Text=EtransCur.TransSetNum.ToString();
			textAckCode.Text=EtransCur.AckCode;
			textNote.Text=EtransCur.Note;
			if(EtransCur.Etype==EtransType.ClaimSent){
				if(X12object.IsX12(MessageText)) {
					X12object x12obj=new X12object(MessageText);
					if(x12obj.IsFormat4010()) {
						X837_4010 x837=new X837_4010(MessageText);
						checkAttachments.Checked=x837.AttachmentsWereSent(EtransCur.ClaimNum);//This function does not currently work, so the corresponding checkbox is hidden on the form as well.
					}
					else if(x12obj.IsFormat5010()) {
						X837_5010 x837=new X837_5010(MessageText);
						checkAttachments.Checked=x837.AttachmentsWereSent(EtransCur.ClaimNum);//This function does not currently work, so the corresponding checkbox is hidden on the form as well.
					}
				}
			}
			if(EtransCur.AckEtransNum>0){
				AckCur=Etranss.GetEtrans(EtransCur.AckEtransNum);
				if(AckCur!=null){
					textAckMessage.Text=EtransMessageTexts.GetMessageText(AckCur.EtransMessageTextNum);
					textAckDateTime.Text=AckCur.DateTimeTrans.ToString();
				}
				groupAck.Text=Lan.g(this,"Acknowledgement");
			}
			else{
				AckCur=null;
				groupAck.Visible=false;
			}
			if(!CultureInfo.CurrentCulture.Name.EndsWith("CA")) {//Not Canadian.
				butPrintAck.Visible=false;
			}
		}
Exemplo n.º 2
0
 private void FormEtransEdit_Load(object sender,EventArgs e)
 {
     MessageText=EtransMessageTexts.GetMessageText(EtransCur.EtransMessageTextNum);
     textMessageText.Text=MessageText;
     textDateTimeTrans.Text=EtransCur.DateTimeTrans.ToString();
     textClaimNum.Text=EtransCur.ClaimNum.ToString();
     textBatchNumber.Text=EtransCur.BatchNumber.ToString();
     textTransSetNum.Text=EtransCur.TransSetNum.ToString();
     textAckCode.Text=EtransCur.AckCode;
     textNote.Text=EtransCur.Note;
     if(EtransCur.Etype==EtransType.ClaimSent){
         if(X12object.IsX12(MessageText)) {
             //TODO: we need to do something different here for 5010s.
             X837_4010 x837=new X837_4010(MessageText);
             checkAttachments.Checked=x837.AttachmentsWereSent(EtransCur.ClaimNum);
         }
     }
     if(EtransCur.AckEtransNum>0){
         AckCur=Etranss.GetEtrans(EtransCur.AckEtransNum);
         if(AckCur!=null){
             textAckMessage.Text=EtransMessageTexts.GetMessageText(AckCur.EtransMessageTextNum);
             textAckDateTime.Text=AckCur.DateTimeTrans.ToString();
         }
         groupAck.Text=Lan.g(this,"Acknowledgement");
     }
     else{
         AckCur=null;
         groupAck.Visible=false;
     }
     if(!CultureInfo.CurrentCulture.Name.EndsWith("CA")) {//Not Canadian.
         butPrintAck.Visible=false;
     }
 }