Ejemplo n.º 1
0
        protected override void InitializeControl()
        {
            atvReference = FindViewById <AutoCompleteTextView>(Resource.Id.atvReference);
            FindViewById <ImageButton>(Resource.Id.btnDrawermenu).Visibility = ViewStates.Visible;
            // ptr = FindViewById<PullToRefresharp.Android.Widget.ScrollView>(Resource.Id.ptr);
            rltitle           = FindViewById <RelativeLayout>(Resource.Id.rltitle);
            rlPRLV            = FindViewById <RelativeLayout>(Resource.Id.rlPRLV);
            rlPOPUPOperation  = FindViewById <RelativeLayout>(Resource.Id.rlPOPUpOperation);
            rlTop             = FindViewById <RelativeLayout>(Resource.Id.rlTop);
            lvProduct         = FindViewById <ListView>(Resource.Id.lvProduct);
            lvOperation       = FindViewById <ListView>(Resource.Id.lvOperation);
            lvDefect          = FindViewById <ListView>(Resource.Id.lvDefect);
            adapter           = new ProductionAccountigListAdapter(list, this);
            lvProduct.Adapter = (adapter);

            operationAdapter    = new BitopiApprovalSystem.OperationAdapter(OperationList, this);
            lvOperation.Adapter = operationAdapter;

            defectAdapter    = new BitopiApprovalSystem.DefectMastAdapter(defectList, this, ShowOperationPopup);
            lvDefect.Adapter = defectAdapter;


            gifView         = FindViewById <RelativeLayout>(Resource.Id.gifview);
            tvLocation      = FindViewById <TextView>(Resource.Id.tvLocation);
            tvRef           = FindViewById <TextView>(Resource.Id.tvRef);
            tvOrderQty      = FindViewById <TextView>(Resource.Id.txtOrderQty);
            tvBalanceQty    = FindViewById <TextView>(Resource.Id.txtBalanceQty);
            tvProducedQty   = FindViewById <TextView>(Resource.Id.txtProduceQty);
            txtWIPQty       = FindViewById <TextView>(Resource.Id.txtWIPQty);
            etQty           = FindViewById <EditText>(Resource.Id.etQty);
            etLotQ          = FindViewById <EditText>(Resource.Id.etLot);
            etSample        = FindViewById <TextView>(Resource.Id.etSample);
            etCheck         = FindViewById <EditText>(Resource.Id.etCheck);
            etDefectiveUnit = FindViewById <EditText>(Resource.Id.etDU);
            btnSave         = FindViewById <Button>(Resource.Id.btnSubmit);

            btnPlus    = FindViewById <Button>(Resource.Id.btnPlus);
            btnMinus   = FindViewById <Button>(Resource.Id.btnMinus);
            btnAll     = FindViewById <Button>(Resource.Id.btnAll);
            btnRunning = FindViewById <Button>(Resource.Id.btnRunning);
            FindViewById <TextView>(Resource.Id.tvHeaderName).Text =
                Html.FromHtml(DBAccess.Database.RecentHistory.Result.Process + @"\Quality").ToString();
            tvLocation.Text = DBAccess.Database.RecentHistory.Result.Location;

            recent1  = FindViewById <Button>(Resource.Id.recent1);
            recent2  = FindViewById <Button>(Resource.Id.recent2);
            recent3  = FindViewById <Button>(Resource.Id.recent3);
            recent4  = FindViewById <Button>(Resource.Id.recent4);
            recent5  = FindViewById <Button>(Resource.Id.recent5);
            spStatus = FindViewById <TextView>(Resource.Id.spStatus);
            //spStatus.Adapter = new ArrayAdapter<string>(this, Resource.Layout.spinner_item, EntryTypeArray);
            base.InitializeControl();
        }
Ejemplo n.º 2
0
        protected override void InitializeControl()
        {
            atvReference = FindViewById <AutoCompleteTextView>(Resource.Id.atvReference);
            FindViewById <ImageButton>(Resource.Id.btnDrawermenu).Visibility = ViewStates.Visible;
            // ptr = FindViewById<PullToRefresharp.Android.Widget.ScrollView>(Resource.Id.ptr);
            rltitle           = FindViewById <RelativeLayout>(Resource.Id.rltitle);
            rlPRLV            = FindViewById <RelativeLayout>(Resource.Id.rlPRLV);
            rlPROperation     = FindViewById <RelativeLayout>(Resource.Id.rlPROperation);
            rlTop             = FindViewById <RelativeLayout>(Resource.Id.rlTop);
            lvProduct         = FindViewById <ListView>(Resource.Id.lvProduct);
            adapter           = new ProductionAccountigListAdapter(list, this);
            lvProduct.Adapter = (adapter);

            lvOperation         = FindViewById <ListView>(Resource.Id.lvOperation);
            operationAdapter    = new OperationListAdapter(operationList, this);
            lvOperation.Adapter = (operationAdapter);

            tvLocation    = FindViewById <TextView>(Resource.Id.tvLocation);
            tvRef         = FindViewById <TextView>(Resource.Id.tvRef);
            tvOrderQty    = FindViewById <TextView>(Resource.Id.txtOrderQty);
            tvBalanceQty  = FindViewById <TextView>(Resource.Id.txtBalanceQty);
            tvProducedQty = FindViewById <TextView>(Resource.Id.txtProduceQty);
            txtWIPQty     = FindViewById <TextView>(Resource.Id.txtWIPQty);
            txtPeriod     = FindViewById <TextView>(Resource.Id.txtPeriod);
            etQty         = FindViewById <EditText>(Resource.Id.etQty);
            btnSave       = FindViewById <Button>(Resource.Id.btnSubmit);
            btnIncentive  = FindViewById <Button>(Resource.Id.btnOperation);
            btnPlus       = FindViewById <Button>(Resource.Id.btnPlus);
            btnMinus      = FindViewById <Button>(Resource.Id.btnMinus);
            btnAll        = FindViewById <Button>(Resource.Id.btnAll);
            btnRunning    = FindViewById <Button>(Resource.Id.btnRunning);
            FindViewById <TextView>(Resource.Id.tvHeaderName).Text = DBAccess.Database.RecentHistory.Result.Process;
            tvLocation.Text = DBAccess.Database.RecentHistory.Result.Location;

            if (DBAccess.Database.RecentHistory.Result.Process != "Sewing")
            {
                btnIncentive.Visibility = ViewStates.Gone;
            }
            recent1 = FindViewById <Button>(Resource.Id.recent1);
            recent2 = FindViewById <Button>(Resource.Id.recent2);
            recent3 = FindViewById <Button>(Resource.Id.recent3);
            recent4 = FindViewById <Button>(Resource.Id.recent4);
            recent5 = FindViewById <Button>(Resource.Id.recent5);

            base.InitializeControl();
        }
Ejemplo n.º 3
0
 public SuggestionsFilter(ProductionAccountigListAdapter adapter)
     : base()
 {
     customAdapter = adapter;
 }