Exemplo n.º 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            Etrans etrans = list[e.Row];

            if (etrans.Etype == EtransType.Eligibility_CA)
            {
                FormEtransEdit formETE = new FormEtransEdit();
                formETE.EtransCur = etrans;
                formETE.ShowDialog();
            }
            else
            {
                string settingErrors271 = X271.ValidateSettings();
                if (settingErrors271 != "")
                {
                    MessageBox.Show(settingErrors271);
                    return;
                }
                bool              isDependent = (etrans.PatNum != 0 && _subPatNum != etrans.PatNum);//Old rows will be 0, but when 0 then request was for subscriber.
                Carrier           carrierCur  = Carriers.GetCarrier(_carrierNum);
                FormEtrans270Edit formE       = new FormEtrans270Edit(PatPlanNum, PlanNum, SubNum, isDependent, _subPatNum, carrierCur.IsCoinsuranceInverted);
                formE.EtransCur = etrans;
                formE.benList   = BenList;
                formE.ShowDialog();
            }
            FillGrid();
        }
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Etrans etrans=list[e.Row];
			if(etrans.Etype==EtransType.Eligibility_CA) {
				FormEtransEdit formETE=new FormEtransEdit();
				formETE.EtransCur=etrans;
				formETE.ShowDialog();
			}
			else {
				FormEtrans270Edit formE=new FormEtrans270Edit(PatPlanNum,PlanNum,SubNum);
				formE.EtransCur=etrans;
				formE.benList=BenList;
				formE.ShowDialog();
			}
			FillGrid();
		}
Exemplo n.º 3
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            Etrans etrans = list[e.Row];

            if (etrans.Etype == EtransType.Eligibility_CA)
            {
                FormEtransEdit formETE = new FormEtransEdit();
                formETE.EtransCur = etrans;
                formETE.ShowDialog();
            }
            else
            {
                FormEtrans270Edit formE = new FormEtrans270Edit(PatPlanNum, PlanNum, SubNum);
                formE.EtransCur = etrans;
                formE.benList   = BenList;
                formE.ShowDialog();
            }
            FillGrid();
        }
Exemplo n.º 4
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Etrans etrans=list[e.Row];
			if(etrans.Etype==EtransType.Eligibility_CA) {
				FormEtransEdit formETE=new FormEtransEdit();
				formETE.EtransCur=etrans;
				formETE.ShowDialog();
			}
			else {
				string settingErrors271=X271.ValidateSettings();
				if(settingErrors271!="") {
					MessageBox.Show(settingErrors271);
					return;
				}
				FormEtrans270Edit formE=new FormEtrans270Edit(PatPlanNum,PlanNum,SubNum);
				formE.EtransCur=etrans;
				formE.benList=BenList;
				formE.ShowDialog();
			}
			FillGrid();
		}
Exemplo n.º 5
0
		private void gridHistory_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Etrans et=Etranss.GetEtrans(PIn.Long(tableHistory.Rows[e.Row]["EtransNum"].ToString()));
			if(et.Etype==EtransType.StatusNotify_277) {
				FormEtrans277Edit Form277=new FormEtrans277Edit();
				Form277.EtransCur=et;
				Form277.ShowDialog();
				return;//No refresh needed because 277 are not editable, they are read only.
			}
			FormEtransEdit FormE=new FormEtransEdit();
			FormE.EtransCur=et;
			FormE.ShowDialog();
			if(FormE.DialogResult!=DialogResult.OK){
				return;
			}
			int scroll=gridHistory.ScrollValue;
			FillHistory();
			for(int i=0;i<tableHistory.Rows.Count;i++){
				if(tableHistory.Rows[i]["EtransNum"].ToString()==et.EtransNum.ToString()){
					gridHistory.SetSelected(i,true);
				}
			}
			gridHistory.ScrollValue=scroll;
		}
Exemplo n.º 6
0
		private void butShowEtrans_Click(object sender,EventArgs e) {
			if(!checkClaims.Checked){
				MessageBox.Show("Only works for claims right now.");
				return;
			}
			//In case the form was just opened
			DatabaseTools.SetDbConnection(dbname);
			int scriptNum=PIn.Int(textSingleScript.Text);
			long patNum=0;
			double claimFee=0;
			string predeterm="";
			switch(scriptNum){
				case 1:
					patNum=Patients.GetPatNumByNameAndBirthday("Fête","Lisa",new DateTime(1960,4,12));
					claimFee=222.35;
					break;
				case 2:
					patNum=Patients.GetPatNumByNameAndBirthday("Fête","Lisa",new DateTime(1960,4,12));
					claimFee=1254.85;
					break;
				case 3:
					patNum=Patients.GetPatNumByNameAndBirthday("Smith","John",new DateTime(1948,3,2));
					claimFee=439.55;
					break;
				case 4:
					patNum=Patients.GetPatNumByNameAndBirthday("Smith","John",new DateTime(1988,11,2));
					claimFee=222.35;
					break;
				case 5:
					patNum=Patients.GetPatNumByNameAndBirthday("Howard","Bob",new DateTime(1964,5,16));
					claimFee=222.35;
					break;
				case 6:
					patNum=Patients.GetPatNumByNameAndBirthday("Howard","Bob",new DateTime(1964,5,16));
					claimFee=232.35;
					break;
				case 7:
					patNum=Patients.GetPatNumByNameAndBirthday("Howard","Bob",new DateTime(1964,5,16));
					claimFee=232.35;
					predeterm="PD78901234";
					break;
				case 8:
					patNum=Patients.GetPatNumByNameAndBirthday("West","Martha",new DateTime(1954,12,25));
					claimFee=565.35;
					break;
				case 9:
					patNum=Patients.GetPatNumByNameAndBirthday("Arpège","Madeleine",new DateTime(1940,5,1));
					claimFee=527.35;
					break;
			}
			List<Claim> claimList=Claims.Refresh(patNum);
			Claim claim=null;
			for(int i=0;i<claimList.Count;i++){
				if(claimList[i].ClaimFee==claimFee && claimList[i].PreAuthString==predeterm){
					claim=claimList[i];
				}
			}
			if(claim==null){
				MessageBox.Show("Claim not found.");
				return;
			}
			List<Etrans> etransList=Etranss.GetHistoryOneClaim(claim.ClaimNum);
			if(etransList.Count==0) {
				MessageBox.Show("No history found of sent e-claim.");
				return;
			}
			FormEtransEdit FormE=new FormEtransEdit();
			FormE.EtransCur=etransList[0];
			FormE.ShowDialog();
		}
Exemplo n.º 7
0
		private void butHistory_Click(object sender,EventArgs e) {
			List<Etrans> etransList=Etranss.GetHistoryOneClaim(ClaimCur.ClaimNum);
			if(etransList.Count==0) {
				MsgBox.Show(this,"No history found of sent e-claim.");
				return;
			}
			FormEtransEdit FormE=new FormEtransEdit();
			FormE.EtransCur=etransList[0];
			FormE.ShowDialog();
		}
Exemplo n.º 8
0
 private void gridHistory_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     Etrans et=Etranss.GetEtrans(PIn.Long(tableHistory.Rows[e.Row]["EtransNum"].ToString()));
     FormEtransEdit FormE=new FormEtransEdit();
     FormE.EtransCur=et;
     FormE.ShowDialog();
     if(FormE.DialogResult!=DialogResult.OK){
         return;
     }
     int scroll=gridHistory.ScrollValue;
     FillHistory();
     for(int i=0;i<tableHistory.Rows.Count;i++){
         if(tableHistory.Rows[i]["EtransNum"].ToString()==et.EtransNum.ToString()){
             gridHistory.SetSelected(i,true);
         }
     }
     gridHistory.ScrollValue=scroll;
 }
Exemplo n.º 9
0
		private void gridHistory_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Etrans et=Etranss.GetEtrans(PIn.Long(tableHistory.Rows[e.Row]["EtransNum"].ToString()));
			if(et.Etype==EtransType.StatusNotify_277) {
				FormEtrans277Edit Form277=new FormEtrans277Edit();
				Form277.EtransCur=et;
				Form277.ShowDialog();
				return;//No refresh needed because 277s are not editable, they are read only.
			}
			if(et.Etype==EtransType.ERA_835) {
				string messageText835=EtransMessageTexts.GetMessageText(et.EtransMessageTextNum);
				X12object x835=new X12object(messageText835);
				List<string> listTranSetIds=x835.GetTranSetIds();
				if(et.TranSetId835=="" && listTranSetIds.Count>=2) {
					FormEtrans835PickEob formPickEob=new FormEtrans835PickEob(listTranSetIds,messageText835,et);
					formPickEob.ShowDialog();
				}
				else {//Only one EOB in the 835.
					FormEtrans835Edit Form835=new FormEtrans835Edit();
					Form835.EtransCur=et;
					Form835.MessageText835=messageText835;
					Form835.TranSetId835="";//Empty string will cause the first EOB in the 835 to display.
					Form835.ShowDialog();
				}
			}
			else {
				FormEtransEdit FormE=new FormEtransEdit();
				FormE.EtransCur=et;
				FormE.ShowDialog();
				if(FormE.DialogResult!=DialogResult.OK) {
					return;
				}
			}
			int scroll=gridHistory.ScrollValue;
			FillHistory();
			for(int i=0;i<tableHistory.Rows.Count;i++){
				if(tableHistory.Rows[i]["EtransNum"].ToString()==et.EtransNum.ToString()){
					gridHistory.SetSelected(i,true);
				}
			}
			gridHistory.ScrollValue=scroll;
		}