Пример #1
0
 public SubGroupViewController(string selectedGroup,mlsCodePicker popoverview,List<CodePickerModel> SubGroupData)
     : base()
 {
     //this.SelectedGroup = selectedGroup;
     this.SubGroupData=SubGroupData;
     //mainrootview = rootview;
     pview = popoverview;
 }
Пример #2
0
 public SubGroupViewController(string selectedGroup,RootViewController rootview,mlsCodePicker popoverview)
     : base()
 {
     this.TableView.AllowsMultipleSelection = true;
     //	this.SelectedGroup = selectedGroup;
     mainrootview = rootview;
     pview = popoverview;
 }
		public async void BindmultilevelPopupover(List<iProPQRSPortableLib.Type> items,List<int> Selecteditems,List<int> SelectedSubitems,UILabel lblField,int FrameY,string labelName)
		{
			AppDelegate.pb.Start(this.View,"PLease wait");


			items.Find (u => u.ProcAttribTypeID == 406).Label = "MAC";
			if(labelName == "AnesthesiaTechs"){
				//iProPQRSPortableLib.Consts.RcvdJSONDataResult =await AppDelegate.Current.pqrsMgr.GetMACCodes();
				RcvdJSONData macCodes = iProPQRSPortableLib.Consts.RcvdJSONDataResult;
				if (macCodes != null && macCodes.results != null) {
					masterlistOfMacCodes = (List<MACCodesDetails>)JsonConvert.DeserializeObject (macCodes.results.ToString (), typeof(List<MACCodesDetails>));
				}
			}

			int uvwidth;
			ATlist.Clear();

			//patientProfile
			List<CodePickerModel> mainsubCatList=new List<CodePickerModel>(); //patientProfile.MACCodesList
			if (masterlistOfMacCodes != null) {
				foreach (var scitem in masterlistOfMacCodes) {
					CodePickerModel sc = new CodePickerModel ();
					sc.ItemCode = scitem.Code;
					sc.ItemID = 0;
					sc.ItemText = scitem.Name;
					mainsubCatList.Add (sc);
					sc = null;
				}
			}

			// need to set Selected Items
			if (Selecteditems != null && Selecteditems.Count > 0) {
				CodePickerModel sitem;	
				foreach (var item in Selecteditems) {
					sitem = new CodePickerModel ();
					sitem.ItemText = iProPQRSPortableLib.Consts.ProcAttribTypes.result.Types.Where(u=>u.ProcAttribTypeID==item).Select(s=>s.Label).Single();
					sitem.ItemID = item;
					ATlist.Add (sitem);
				}
			}

			//
			string subcattext=string.Empty;
			SelectedSubcodeitems = new List<CodePickerModel> ();
			checkmaccode.Clear ();
			if (SelectedSubitems != null && SelectedSubitems.Count > 0 && patientProfile.MACCodesList != null) {
				subcattext = string.Empty;
				selectedsubAnesTechTypesIds.Clear ();
				CodePickerModel sitem;	
				foreach (var item in patientProfile.MACCodesList) {
					selectedsubAnesTechTypesIds.Add (item.ProcCodeID.ToString ());
					if (!checkmaccode.Contains (item.Code)) {
						CodePickerModel sc = new CodePickerModel ();

						sc.ItemCode = item.Code;
						sc.ItemID = item.ProcCodeID;
						sc.ItemText = item.Name;
						SelectedSubcodeitems.Add (sc);
						subcattext = subcattext + item.Code + ",";
						checkmaccode.Add (item.Code);
						sc = null;
					}

				}
				if(!string.IsNullOrEmpty(subcattext))					
					subcattext=" ("+subcattext.TrimEnd(',')+" )";
				
				iProPQRSPortableLib.Type typeitem = items.Where (u => u.ProcAttribTypeID == 406).SingleOrDefault ();
				items.Remove (typeitem);

				typeitem.Label ="MAC " + subcattext;
				items.Add (typeitem);
				items.Sort((xx,yy)=> xx.ProcAttribTypeID.CompareTo(yy.ProcAttribTypeID));
			}

			List<CodePickerModel> alist = SetTypeDataSource(items, out  uvwidth);
			uvwidth = 600;
			mlcp = new mlsCodePicker(this,uvwidth,alist,mainsubCatList);
			uvwidth = 600;
			if (ATlist.Count > 0)
				mlcp.SelectedItems = ATlist;
			
			mlcp.SelectedSubItems = SelectedSubcodeitems;

			float x = (float)lblField.Frame.X;
			float y = (float)lblField.Frame.Y+FrameY;
			mlcp.TypeItemID = 406;
			mlcp.TypeValue = null;
			mlcp.isMainCatMultiSelect = true;
			mlcp.isMultiSelect = true;
			mlcp.PresentFromPopover(lblField, 10, y);
			AppDelegate.pb.Stop ();
			mlcp._ValueChanged += async delegate
			{
				int ProcID=0;
				if(procedureDetails != null && procedureDetails.ID != 0)
					ProcID = procedureDetails.ID;
				
				AppDelegate.pb.Start(this.View,"PLease wait");
				if(mlcp.SelectedItems.Count > 0){
					ATlist = mlcp.SelectedItems;
					SelectedSubcodeitems=mlcp.SelectedSubItems;
					string finalText = string.Empty;
					List<AttribType>  procalist=new List<AttribType>();
					AttribType procitem; 


					string txtmac=string.Empty;
					foreach (var item in ATlist){
						
							procitem=new AttribType();
							procitem.ProcAttribTypeID=item.ItemID;
							procitem.ProcID=ProcID;
							procitem.Value = "1";
							procitem.IsHighLighted=false;
							procalist.Add(procitem);
							procitem=null;
						  if(item.ItemID != 406)						   
							finalText = finalText + ", " + item.ItemText;						
						  else
							txtmac="MAC";
					}

					//				SetTextboxValue(mCurrentTextBoxID, finalText.TrimStart(','));
					lblField.Text = finalText.TrimStart(',').TrimEnd(',');

					foreach (var sitem in Selecteditems) {
						
						List<int> spid = ATlist.Where(w=>w.ItemID == sitem).Select(s=>s.ItemID).ToList();
						if(spid!=null && spid.Count == 0 )
						{
							procitem=new AttribType();
							procitem.ProcAttribTypeID=sitem;
							procitem.ProcID=ProcID;
							procitem.Value="";
							procitem.IsHighLighted=false;
							procalist.Add(procitem);
							procitem=null;
						}
					}


					if(procalist != null && procalist.Count > 0 ){
						var procAttribtsobject  = await AppDelegate.Current.pqrsMgr.UpdateProcAttribs(procalist);
						if(procAttribtsobject != null && procAttribtsobject.status != null && procAttribtsobject.status.ToUpper() == "OK")
						{
							List<int> Subids=new List<int>();
							if(labelName=="AnesthesiaTechs"){
								//var  SelectedSubcode=SelectedSubcodeitems.Distinct();
								foreach (var id in selectedsubAnesTechTypesIds) {
									int proccodeid=Convert.ToInt16(id);
									if(proccodeid!=0)
									{
										ReceiveContext deletecontext=await AppDelegate.Current.pqrsMgr.DeleteProcedureDiagnostic(proccodeid);
										if (deletecontext != null && deletecontext.status != null && deletecontext.status.ToUpper () == "OK")
										{
											
										}

									}
								}
								checkmaccode.Clear();
								if(txtmac !=null && txtmac != "")
								{
										foreach (var subitem in SelectedSubcodeitems){										
											checkmaccode.Add(subitem.ItemCode);
											//finalText = finalText + ", " + subitem.ItemCode;
											UpdateProcedureDiagnostic(0,subitem.ItemCode,subitem.ItemText,418);
											selectedsubAnesTechTypesIds.Add(subitem.ItemID.ToString());

											}
								}
								if(!string.IsNullOrEmpty(txtmac) && checkmaccode.Count > 0)
								{
									finalText=finalText.TrimEnd(',').TrimStart(',') +", MAC (" +String.Join(", ", checkmaccode.ToArray())+")";
									lblField.Text=finalText;
								}
								else if(!string.IsNullOrEmpty(txtmac))
								{
									lblField.Text=finalText.TrimEnd(',').TrimStart(',') +" ,MAC";
								}

							


								//lblField.Text = finalText.TrimStart(',');

							}
							Console.WriteLine("Procedure Info. Successfully Saved.");	
							//						new UIAlertView("Procedure Info", "Successfully Saved.", null, "ok", null).Show();
						}else{
							NavigationController.PopToRootViewController(true);
							Console.WriteLine("Procedure Info. Save failed.");	
							//						new UIAlertView("Error", procAttribtsobject.message, null, "ok", null).Show();
						}
					}

					if(labelName=="AnesthesiaTechs"){
						selectedAnesTechTypesIds.Clear();
						foreach (var item in ATlist) {
							selectedAnesTechTypesIds.Add(item.ItemID);
						}
						//selectedsubAnesTechTypesIds
						//selectedsubAnesTechTypesIds.Clear();
						//foreach (var item in SelectedSubcodeitems) {
							//selectedsubAnesTechTypesIds.Add(item.ItemID.ToString());
						//}
					}else if(labelName=="NerveBlock"){
						selectedNerveBlockIds.Clear();
						foreach (var item in ATlist) {
							selectedNerveBlockIds.Add(item.ItemID);
						}
					}else if(labelName=="SpecialTechs"){
						selectedSpecialTechIds.Clear();
						foreach (var item in ATlist) {
							selectedSpecialTechIds.Add(item.ItemID);
						}
					}


					ATlist.Clear();

				}
				else
				{
					lblField.Text="";
					List<AttribType>  procalist=new List<AttribType>();
					AttribType procitem; 
					foreach (var sitem in Selecteditems) {

						List<int> spid = ATlist.Where(w=>w.ItemID == sitem).Select(s=>s.ItemID).ToList();
						if(spid!=null && spid.Count == 0 )
						{
							procitem=new AttribType();
							procitem.ProcAttribTypeID=sitem;
							procitem.ProcID=ProcID;
							procitem.Value="";
							procitem.IsHighLighted=false;
							procalist.Add(procitem);
							procitem=null;
						}
					}
						if(procalist != null && procalist.Count > 0 ){
							var procAttribtsobject  = await AppDelegate.Current.pqrsMgr.UpdateProcAttribs(procalist);
							if(procAttribtsobject != null && procAttribtsobject.status != null && procAttribtsobject.status.ToUpper() == "OK")
							{
								List<int> Subids=new List<int>();
								if(labelName=="AnesthesiaTechs"){
									//var  SelectedSubcode=SelectedSubcodeitems.Distinct();
									foreach (var id in selectedsubAnesTechTypesIds) {
										int proccodeid=Convert.ToInt16(id);
										if(proccodeid!=0)
										{
											ReceiveContext deletecontext=await AppDelegate.Current.pqrsMgr.DeleteProcedureDiagnostic(proccodeid);
											if (deletecontext != null && deletecontext.status != null && deletecontext.status.ToUpper () == "OK")
											{

											}

										}
									}
								}
							}
					   }
					selectedAnesTechTypesIds.Clear();
					if(patientProfile.MACCodesList!=null)
					patientProfile.MACCodesList.Clear();
				}
				iProPQRSPortableLib.Consts.SelectedProcAttribtslist  = await AppDelegate.Current.pqrsMgr.GetAllAttribTypesOfAProcedure(ProcID);
				var rootobject = await AppDelegate.Current.pqrsMgr.GetProcedureDiagnosticMaster(ProcID);
				patientProfile.MACCodesList = rootobject.result.FindAll(u=> u.ProcCodeTypeID == 418);
				AppDelegate.pb.Stop ();
				lblField.Text=lblField.Text.TrimStart(',').TrimEnd(',');
				UpdateProcedureStatus ();
			};
		}
		List<CodePickerModel> SelectedSubcodeitems=null;//new List<CodePickerModel>();
		public void BindmultilevelPopupover(List<iProPQRSPortableLib.Option> items,List<Tuple<string,string>> Selecteditems, List<int> SelectedSubitems,UILabel btnField,int FrameY,UILabel hidenval,bool isMultiSelect)
		{
			int uvwidth;
			int vw;
			ATlist.Clear ();
			SelectedSubcodeitems=new List<CodePickerModel>();
			List<CodePickerModel> alist = SetTypeDataSource(items, out  uvwidth);
			List<CodePickerModel> SubRootList  = SetTypeDataSource(nonPqrsTypeAS10Options, out  uvwidth);
			mlcp = new mlsCodePicker(this,uvwidth,alist,SubRootList);
			uvwidth = 700;
			if (Selecteditems != null && Selecteditems.Count > 0) {
				CodePickerModel sitem;	
				if (Selecteditems != null && Selecteditems.Count > 0 && !string.IsNullOrEmpty(Selecteditems[0].Item1)) {
					sitem = new CodePickerModel ();
					sitem = alist.Where (u => u.ItemID == Convert.ToInt16 (Selecteditems[0].Item1) && u.ItemCode == Selecteditems[0].Item2).SingleOrDefault ();
					ATlist.Add (sitem);
				}

			}


			if (SelectedSubitems != null && SelectedSubitems.Count > 0) {
				//CodePickerModel sitem;	
				foreach (var subitem in SelectedSubitems) {					
						//sitem = new CodePickerModel ();
					var  sitem= SubRootList.Where (u => u.ItemID == subitem).ToList();				 
					if(sitem.Count >0 )
						SelectedSubcodeitems.Add (sitem[0]);
				}
			}
			if (ATlist.Count > 0) {
				string finaltext = "Serious adverse event (";
				if (ATlist [0]!=null && ATlist [0].ItemID == 608 && ATlist [0].ItemCode == "B" && SelectedSubcodeitems.Count > 0) {
					foreach (var item in SelectedSubcodeitems) {
						finaltext = finaltext + item.ItemText + ",";
					}
					finaltext = finaltext.TrimEnd(',') + " )";
					ATlist [0].ItemText = finaltext;
				}
				mlcp.SelectedItems = ATlist;
			}
			
			//if(SelectedSubcodeitems.Count > 0)
			mlcp.SelectedSubItems =    SelectedSubcodeitems;

			float x = 10;//(float)btnField.Frame.X;
			float y = 10;//(float)btnField.Frame.Y+FrameY;
			mlcp.TypeItemID=608;
			mlcp.TypeValue="B"; 
			mlcp.isMultiSelect = isMultiSelect;
			mlcp.PresentFromPopover(btnField, x, y);

			//SubRootData
			mlcp._ValueChanged += async delegate
			{
				ATlist = mlcp.SelectedItems;
				SelectedSubcodeitems=mlcp.SelectedSubItems;
				string finalText = " ";

				List<AttribType>  procalist=new List<AttribType>();
				AttribType procitem; 
				int ProcID=0;
				if(procedureDetails != null && procedureDetails.ID != 0)
					ProcID = procedureDetails.ID;

				foreach (var item in ATlist)
				{					
					procitem = new AttribType();
					procitem.ProcAttribTypeID = item.ItemID;
					procitem.ProcID = ProcID;
					procitem.Value = item.ItemCode;
					procitem.IsHighLighted = false;
					procalist.Add(procitem);
					procitem = null;
					finalText = item.ItemText;
				}
				btnField.Text=finalText.Trim();
				foreach (var sitem in Selecteditems) {
					string spid = ATlist.Where(w=>w.ItemCode == sitem.Item1).Select(s=>s.ItemCode).SingleOrDefault();
					if(spid == string.Empty)
					{
						procitem=new AttribType();
						procitem.ProcAttribTypeID = items[0].ProcAttribTypeID;
						procitem.ProcID = ProcID;
						procitem.Value = "";
						procitem.IsHighLighted=false;
						procalist.Add(procitem);
						procitem=null;
					}
				}
				//SelectedSubitems.Clear();
				foreach (var sitem in SelectedSubcodeitems)
				{					
					procitem = new AttribType();
					procitem.ProcAttribTypeID = sitem.ItemID;
					procitem.ProcID = ProcID;
					procitem.Value = sitem.ItemText;
					procitem.IsHighLighted = false;
					procalist.Add(procitem);
					procitem = null;

				}
				List<int> removeid=new List<int>(); 
				foreach (var rsitem in SelectedSubitems) {
					var removeitem = mlcp.SelectedSubItems.Where(w=>w.ItemID == rsitem).ToList();
					if(removeitem == null || removeitem.Count == 0)
					{
						procitem=new AttribType();
						procitem.ProcAttribTypeID = rsitem;
						procitem.ProcID = ProcID;
						procitem.Value = "";
						procitem.IsHighLighted=false;
						procalist.Add(procitem);
						procitem=null;
						removeid.Add(rsitem);
					}
				}

				foreach (var ri in removeid) {
					SelectedSubitems.Remove(SelectedSubitems.Where(u=>u==ri).SingleOrDefault());
					mlcp.SelectedSubItems.Remove (mlcp.SelectedSubItems.Where(u=>u.ItemID==ri).SingleOrDefault());
				}
				//SelectedSubitems.Clear();

				if(procalist != null && procalist.Count > 0 ){
					var procAttribtsobject  = await AppDelegate.Current.pqrsMgr.UpdateProcAttribs(procalist);
					if(procAttribtsobject != null && procAttribtsobject.status != null && procAttribtsobject.status.ToUpper() == "OK"){
						Console.WriteLine ("Patient Info. Successfully Saved.");
						//						new UIAlertView("Procedure Info", "Successfully Saved.", null, "ok", null).Show();
					}else{
						new UIAlertView("Error", procAttribtsobject.message, null, "ok", null).Show();
					}
				}


					foreach (var item in ATlist) {
					hidenval.Tag=item.ItemID;
					hidenval.Text=item.ItemCode;
				 }
				ATlist.Clear();
				iProPQRSPortableLib.Consts.SelectedProcAttribtslist  = await AppDelegate.Current.pqrsMgr.GetAllAttribTypesOfAProcedure(ProcID);
				selectednonPqrsTypeAS10OptionsIds = iProPQRSPortableLib.Consts.SelectedProcAttribtslist.result.FindAll(u => (nonPqrsTypeAS10Options.Select (z => z.ProcAttribTypeID)).Contains (u.ProcAttribTypeID)).Select(xx=>xx.ProcAttribTypeID).ToList();

			};
		}
		public void BindmultilevelPopupover(List<iProPQRSPortableLib.Option> masterMainList,List<iProPQRSPortableLib.Option> masterSubCatList,UILabel btnField,int FrameY,UILabel hidenval,UILabel lblhidensubcatval,bool isMultiSelect,int TypeItemID,string TypeValue)
		{
			int uvwidth;
			int vw;
			ATlist.Clear ();
			SelectedSubcodeitems=new List<CodePickerModel>();
			List<CodePickerModel> alist = SetTypeDataSource(masterMainList, out  uvwidth);
			List<CodePickerModel> SubRootList  = SetTypeDataSource(masterSubCatList, out  vw);
			uvwidth = 800;
			var	selectedMainListIDs = iProPQRSPortableLib.Consts.SelectedProcAttribtslist.result.FindAll (u => (masterMainList.Select (z => z.ProcAttribTypeID)).Contains (u.ProcAttribTypeID)).ToList ();
		
			if (selectedMainListIDs != null && selectedMainListIDs.Count > 0) {
				//ATlist = = SetTypeDataSource(masterSubCatList, out  uvwidth);
				CodePickerModel sitem;	
				foreach (var smid in selectedMainListIDs) {
					var desclist=masterMainList.Where(u=>u.ProcAttribTypeID==smid.ProcAttribTypeID && u.Value == smid.Value).ToList();
					sitem = new CodePickerModel ();
					sitem.ItemCode = smid.Value;
					sitem.ItemID = smid.ProcAttribTypeID;
					if (desclist.Count > 0)
						sitem.ItemText = desclist [0].Description;
					ATlist.Add (sitem);					
		
				}
		
			}


			var selectedSubCatListIDs = iProPQRSPortableLib.Consts.SelectedProcAttribtslist.result.FindAll(u => (masterSubCatList.Select (z => z.ProcAttribTypeID)).Contains (u.ProcAttribTypeID)).ToList();

			if (selectedSubCatListIDs != null && selectedSubCatListIDs.Count > 0) {
				CodePickerModel sitem;	
			
				foreach (var smid in selectedSubCatListIDs) {
					var desclist=masterSubCatList.Where(u=>u.ProcAttribTypeID==smid.ProcAttribTypeID && u.Value == smid.Value).ToList();
					sitem = new CodePickerModel ();
					sitem.ItemCode = smid.Value;
					sitem.ItemID = smid.ProcAttribTypeID;
					if (desclist.Count > 0)
						sitem.ItemText = desclist [0].Description;
					
			
					SelectedSubcodeitems.Add (sitem);					
				}
			
			}
			//string TypeValue = "0582F";
			if (alist.Count > 0 && SelectedSubcodeitems.Count > 0) {
				//"0582F"
				List<CodePickerModel> changeitems=new List<CodePickerModel>();
				foreach (var Maincatitem in alist) {
					//"0582F"
					if (Maincatitem.ItemCode == TypeValue) {
						TypeValue = Maincatitem.ItemCode;
						string finaltext =Maincatitem.ItemText+ " (";
						foreach (var item in SelectedSubcodeitems) {
							finaltext = finaltext + item.ItemText + ",";
						}
						finaltext = finaltext.TrimEnd(',') + " )";
						Maincatitem.ItemText = finaltext;
						changeitems.Add(Maincatitem);
				
					}
				}
				foreach (var item in changeitems) {
					var changeitem = alist.Where (u => u.ItemCode == item.ItemCode).ToList();
					alist.Remove (changeitem[0]);
					alist.Add (changeitem [0]);
				}

			}
			//FullDescription

			mlcp = new mlsCodePicker(this,uvwidth,alist,SubRootList);
			mlcp.SelectedItems = ATlist;
			if(SelectedSubcodeitems.Count > 0)
				mlcp.SelectedSubItems =    SelectedSubcodeitems;

			float xcord = 10;//(float)btnField.Frame.X;
			float ycord = 10;//(float)btnField.Frame.Y+FrameY;
			mlcp.TypeItemID=TypeItemID;//alist[0].ItemID;
			mlcp.TypeValue=TypeValue;
			mlcp.isMultiSelect = isMultiSelect;
			mlcp.PresentFromPopover(btnField, xcord, ycord);

			//SubRootData
			mlcp._ValueChanged += async delegate
			{
				ATlist = mlcp.SelectedItems;
				if(ATlist[0].ItemID ==TypeItemID && ATlist[0].ItemCode=="0581F" || ATlist[0].ItemCode=="A")
					mlcp.SelectedSubItems.Clear();
				SelectedSubcodeitems=mlcp.SelectedSubItems;
				string finalText = " ";

				List<AttribType>  procalist=new List<AttribType>();
				AttribType procitem; 
				int ProcID=0;
				if(procedureDetails != null && procedureDetails.ID != 0)
					ProcID = procedureDetails.ID;

				foreach (var item in ATlist)
				{					
					procitem = new AttribType();
					procitem.ProcAttribTypeID = item.ItemID;
					procitem.ProcID = ProcID;
					procitem.Value = item.ItemCode;
					procitem.IsHighLighted = false;
					procalist.Add(procitem);
					procitem = null;
					finalText = item.ItemText;
				}
				btnField.Text=finalText.Trim();
				foreach (var sitem in masterMainList) {
					string spid = ATlist.Where(w=>w.ItemID == sitem.ProcAttribTypeID).Select(s=>s.ItemCode).SingleOrDefault();
					if(spid == string.Empty)
					{
						procitem=new AttribType();
						procitem.ProcAttribTypeID = masterMainList[0].ProcAttribTypeID;
						procitem.ProcID = ProcID;
						procitem.Value = "";
						procitem.IsHighLighted=false;
						procalist.Add(procitem);
						procitem=null;
					}
				}
				//SelectedSubitems.Clear();
				string subtitles=string.Empty;
				if(SelectedSubcodeitems.Count > 0)
				{
					subtitles=" (";
					foreach (var sitem in SelectedSubcodeitems)
					{					
						procitem = new AttribType();
						procitem.ProcAttribTypeID = sitem.ItemID;
						procitem.ProcID = ProcID;
						procitem.Value = sitem.ItemCode;
						procitem.IsHighLighted = false;
						procalist.Add(procitem);
						procitem = null;
						subtitles=subtitles+sitem.ItemText +",";

					}
					subtitles=subtitles.TrimEnd(',')+")";
					//0583F
					if( mlcp.TypeValue != "0581F")
					   btnField.Text=btnField.Text+subtitles;
				}

				List<int> removeid=new List<int>(); 
				foreach (var rsitem in selectedSubCatListIDs) {
					var removeitem = mlcp.SelectedSubItems.Where(w=>w.ItemID == rsitem.ProcAttribTypeID).ToList();
					if(removeitem == null || removeitem.Count == 0)
					{
						procitem=new AttribType();
						procitem.ProcAttribTypeID = rsitem.ProcAttribTypeID;
						procitem.ProcID = ProcID;
						procitem.Value = "";
						procitem.IsHighLighted=false;
						procalist.Add(procitem);
						procitem=null;
						removeid.Add(rsitem.ProcAttribTypeID);
					}
				}


				selectedSubCatListIDs.Clear();

				if(procalist != null && procalist.Count > 0 ){
					var procAttribtsobject  = await AppDelegate.Current.pqrsMgr.UpdateProcAttribs(procalist);
					if(procAttribtsobject != null && procAttribtsobject.status != null && procAttribtsobject.status.ToUpper() == "OK"){
						Console.WriteLine ("Patient Info. Successfully Saved.");
						//						new UIAlertView("Procedure Info", "Successfully Saved.", null, "ok", null).Show();
					}else{
						new UIAlertView("Error", procAttribtsobject.message, null, "ok", null).Show();
					}
				}


				foreach (var item in ATlist) {
					hidenval.Tag=item.ItemID;
					hidenval.Text=item.ItemCode;
				}
				ATlist.Clear();
				iProPQRSPortableLib.Consts.SelectedProcAttribtslist  = await AppDelegate.Current.pqrsMgr.GetAllAttribTypesOfAProcedure(ProcID);
			};
		}
Пример #6
0
		public RootGroupView (List<CodePickerModel>  RootData ,mlsCodePicker popoverview,SubGroupView subview)
		{
			this.RootData = RootData;
			pview = popoverview;
			this.subview = subview;
		}
Пример #7
0
 public SubGroupView(string selectedGroup,mlsCodePicker pview,List<CodePickerModel> SubRootData)
 {
     this.SelectedGroup = selectedGroup;
     this.pview = pview;
     this.DataSource = SubRootData;
 }
Пример #8
0
 public SubGroupView(string selectedGroup,mlsCodePicker pview)
 {
     this.SelectedGroup = selectedGroup;
     this.pview = pview;
 }