Esempio n. 1
0
		///<summary></summary>
		public static long Insert(PayorType payorType){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				payorType.PayorTypeNum=Meth.GetLong(MethodBase.GetCurrentMethod(),payorType);
				return payorType.PayorTypeNum;
			}
			return Crud.PayorTypeCrud.Insert(payorType);
		}
Esempio n. 2
0
		///<summary></summary>
		public static void Update(PayorType payorType){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),payorType);
				return;
			}
			Crud.PayorTypeCrud.Update(payorType);
		}
Esempio n. 3
0
		private void butAdd_Click(object sender,EventArgs e) {
			PayorType payorType=new PayorType();
			payorType.PatNum=PatCur.PatNum;
			payorType.DateStart=DateTime.Today;
			FormPayorTypeEdit FormPTE=new FormPayorTypeEdit(payorType);
			FormPTE.IsNew=true;
			FormPTE.ShowDialog();
			if(FormPTE.DialogResult!=DialogResult.OK) {
				return;
			}
			FillGrid();
		}
Esempio n. 4
0
        ///<summary>This will return "SopCode - Description" or empty string if the patient does not have a payor type entered.</summary>
        public static string GetCurrentDescription(long patNum)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                return(Meth.GetString(MethodBase.GetCurrentMethod(), patNum));
            }
            PayorType payorType = GetCurrentType(patNum);

            if (payorType == null)
            {
                return("");
            }
            return(payorType.SopCode + " - " + Sops.GetDescriptionFromCode(payorType.SopCode));
        }
		private int _selectedIndex;//used to keep track of the selected index in the comboSopCode drop down box since we are setting the text differently than the contents of the drop down list
		
		public FormPayorTypeEdit(PayorType payorType) {
			InitializeComponent();
			Lan.F(this);
			PayorTypeCur=payorType;
		}