public void RefreshPage(AssignedWorks assignedWork)
 {
     workitem          = assignedWork;
     txtWorkOrder.Text = workitem.WorkOrder.ToString();
     txtWorkName.Text  = workitem.WorkName;
     txtM_S.Text       = workitem.M_S;
     txtFBPInfo.Text   = $"Fin. P: {workitem.Fin}% | BoQ P: {workitem.BoQ}% | Phy. P: {workitem.Phy}%";
 }
Exemple #2
0
        public NotificationTabbedPage(AssignedWorks work = null)
        {
            InitializeComponent();
            assignedWorks = work;

            this.BindingContext               = assignedWorks;
            _eMBNotificationCount             = _eMBNotificationList.Count();
            EMBNotificationView.Title         = $"eMB({_eMBNotificationCount})";
            LV_eMBNotification.BindingContext = _eMBNotificationList;
            LV_eMBNotification.ItemsSource    = _eMBNotificationList;
        }
 public void InitializePage(AssignedWorks assignedWork, bool ShowActionItemsPanel = false)
 {
     workitem          = assignedWork;
     txtWorkOrder.Text = workitem.WorkOrder.ToString();
     txtWorkName.Text  = workitem.WorkName;
     txtM_S.Text       = workitem.M_S;
     txtFBPInfo.Text   = $"Fin. P: {workitem.Fin}% | BoQ P: {workitem.BoQ}% | Phy. P: {workitem.Phy}%";
     txtAssetName.Text = workitem.AssetName;
     txtWeightage.Text = workitem.Weightage.ToString();
     if (workitem.AssetName.Contains("Building"))
     {
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 1, ActivityName = "Earth Work"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 2, ActivityName = "PCC"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 3, ActivityName = "RCC Work upto P/L"
         });
     }
     else
     {
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 1, ActivityName = "Earth Work"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 2, ActivityName = "GSB"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 3, ActivityName = "WBM"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 3, ActivityName = "BT Work"
         });
         buildingActivities.Add(new BuildingActivitiesModel {
             ActivityID = 3, ActivityName = "CC Work"
         });
     }
     lstActivities.BindingContext = buildingActivities;
     lstActivities.ItemsSource    = buildingActivities;
     if (ShowActionItemsPanel)
     {
         BTN_Ex_Col_Clicked();
     }
 }
Exemple #4
0
 public void InitializePage(AssignedWorks work = null)
 {
     assignedWorks       = work;
     this.BindingContext = assignedWorks;
 }