partial void employeeSignoutButton_TouchUpInside(MonoTouch.UIKit.UIButton sender) { var signut = Storyboard.InstantiateViewController("EmployeeListSignoutViewController") as EmployeeListSignoutViewController; signut.timekeeperdetails(this, Timekeepernumbr.ToString(), Workdte.ToString(), TimekeeperName.ToString()); NavigationController.PushViewController(signut, true); }
public override async void ViewDidAppear(bool animate) { try { await LoadData(); lblsignutcnt.Text = Signoutcount.ToString(); equipmentSignoutCountLabel.Text = EquipmentCount.ToString(); taskCaptureButton.Layer.CornerRadius = 10; taskCaptureButton.ClipsToBounds = true; taskCaptureButton.Layer.BorderColor = UIColor.LightGray.CGColor; taskCaptureButton.Layer.BorderWidth = 1; dailyLogButton.Layer.CornerRadius = 10; dailyLogButton.ClipsToBounds = true; dailyLogButton.Layer.BorderColor = UIColor.LightGray.CGColor; dailyLogButton.Layer.BorderWidth = 1; settingsButton.Layer.CornerRadius = 10; settingsButton.ClipsToBounds = true; settingsButton.Layer.BorderColor = UIColor.LightGray.CGColor; settingsButton.Layer.BorderWidth = 1; equipmentSignoutButton.Layer.CornerRadius = 10; equipmentSignoutButton.ClipsToBounds = true; equipmentSignoutButton.Layer.BorderColor = UIColor.LightGray.CGColor; equipmentSignoutButton.Layer.BorderWidth = 1; employeeSignoutButton.Layer.CornerRadius = 10; employeeSignoutButton.ClipsToBounds = true; employeeSignoutButton.Layer.BorderColor = UIColor.LightGray.CGColor; employeeSignoutButton.Layer.BorderWidth = 1; dateLabel.Text = Workdte.ToString(); lbltimekeppername.Text = TimekeeperName.ToString(); lbltimekeeperid.Text = Timekeepernumbr.ToString(); } catch (Exception ex) { System.Console.WriteLine(ex.Message); } }
async Task DoLoadDataEquip() { ModernHttpClient.NativeMessageHandler m = new ModernHttpClient.NativeMessageHandler(); Newtonsoft.Json.JsonSerializer serializer = new Newtonsoft.Json.JsonSerializer(); JsonClient client = new JsonClient(serializer); var response = await client.GetAsync <IEnumerable <EquipmentMasterDTO> >(TimeCapServices.EquipList, new Dictionary <string, string>() { { "timeKeeperPersonnelNumber", Timekeepernumbr.ToString() }, { "workDate", Workdte.ToString() } }); EquipCount.Clear(); foreach (var item in response.Value) { EquipCount.Add((string)item.EquipmentNumber.ToString()); EquipmentCount = EquipCount.Count().ToString(); } }
async Task DoLoadData() { try { ModernHttpClient.NativeMessageHandler m = new ModernHttpClient.NativeMessageHandler(); Newtonsoft.Json.JsonSerializer serializer = new Newtonsoft.Json.JsonSerializer(); JsonClient client = new JsonClient(serializer); var response = await client.GetAsync <IEnumerable <LaborListDTO> >(TimeCapServices.LaborList, new Dictionary <string, string>() { { "timeKeeperPersonnelNumber", Timekeepernumbr.ToString() }, { "workDate", Workdte.ToString() } }); Signoutcnt.Clear(); foreach (var item in response.Value) { Signoutcnt.Add((string)item.EmployeePersonnelNumber.ToString()); Signoutcount = Signoutcnt.Count().ToString(); } } catch (Exception ex) { new UIAlertView("Oops", "No Record Available", null, "OK", null).Show(); System.Console.WriteLine(ex.Message); } }