コード例 #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_nohin_mailBag_password, container, false);
            prefs = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            SetTitle("メールバック");

            etPassword = view.FindViewById<EditText>(Resource.Id.et_nohinMailbagPwd_password);

            string menuFlag = prefs.GetString("menu_flg", "1");
            
            BootstrapButton button = view.FindViewById<BootstrapButton>(Resource.Id.btn_nohinMailbagPwd_confirm);
            button.Click += delegate {
                //StartFragment(FragmentManager, typeof(NohinCompleteFragment));
                if (menuFlag == "1")
                {
                    editor.PutBoolean("mailBagFlag", true);
                    editor.Apply();

                    ShowDialog("報告", "メールバッグの\n納品が完了しました。", () => { FragmentManager.PopBackStack(FragmentManager.GetBackStackEntryAt(2).Id, 0); });
                }
                else
                {
                    ShowDialog("報告", "納品検品が\n完了しました。\n\nお疲れ様でした!", () => { FragmentManager.PopBackStack(FragmentManager.GetBackStackEntryAt(2).Id, 0); });
                }

                
            };
            
            return view;
        }
コード例 #2
0
        private void InitComponent()
        {
            SetTitle("商品回収");

            TextView txtTokusakiNm   = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_tokuisakiNm);
            TextView txtTodokesakiNm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_todokisakiNm);

            txtIdouSu   = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_idousu);
            txtMailSu   = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_mailsu);
            txtHazaiSu  = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_hazaisu);
            txtSonotaSu = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_sonotasu);
            txtHenpinSu = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_henpinsu);
            txtSougoSu  = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuShohin_sougosu);

            txtTokusakiNm.Text   = prefs.GetString("tokuisaki_nm", "");
            txtTodokesakiNm.Text = prefs.GetString("todokesaki_nm", "");
            arrKamotu            = new List <string>();

            BootstrapButton button1 = view.FindViewById <BootstrapButton>(Resource.Id.btn_nohinKaisyuShohin_confirm);

            button1.Click += delegate { Confirm(); };

            btnOsamu        = view.FindViewById <BootstrapButton>(Resource.Id.btn_nohinKaisyuShohin_osamu);
            btnOsamu.Click += delegate
            {
                if (btnOsamu.Text == "修")
                {
                    btnOsamu.Text = "入";
                }
                else
                {
                    btnOsamu.Text = "修";
                }
            };
        }
コード例 #3
0
        private void InitComponent()
        {
            SetTitle("メールバック回収");
            SetFooterText("");

            TextView tvTokuisaki = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMail_tokuisakiNm);

            tvTokuisaki.Text = prefs.GetString("tokuisaki_nm", "");

            TextView tvTodokesaki = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMail_todokisakiNm);

            tvTodokesaki.Text = prefs.GetString("todokesaki_nm", "");

            etKaisyuMail = view.FindViewById <EditText>(Resource.Id.et_nohinKaisyuMail_kaisyuMailbag);

            BootstrapButton btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.et_nohinKaisyuMail_Confirm);

            btnConfirm.Click += delegate { ConfirmMailBagKaisyu(); };

            sndNohinMailKaisyuHelper = new SndNohinMailKaisyuHelper();
            List <SndNohinMailKaisyu> temp = sndNohinMailKaisyuHelper.SelectAll();

            if (temp.Count > 0)
            {
                etKaisyuMail.Text = temp.Count.ToString();
                mail_bag          = 0;
            }
            else
            {
                etKaisyuMail.Text = "0";
                mail_bag          = 0;
            }

            arrMailBag = new List <string>();
        }
コード例 #4
0
        protected void bbtnDelete_Click(object sender, EventArgs e)
        {
            BootstrapButton bbtnDelete = (BootstrapButton)sender;
            RepeaterItem    riItem     = (RepeaterItem)bbtnDelete.NamingContainer;

            HiddenField hfScheduledTransactionId = (HiddenField)riItem.FindControl("hfScheduledTransactionId");
            Literal     content = (Literal)riItem.FindControl("lLiquidContent");
            Button      btnEdit = (Button)riItem.FindControl("btnEdit");

            var rockContext = new Rock.Data.RockContext();
            FinancialScheduledTransactionService fstService = new FinancialScheduledTransactionService(rockContext);
            var currentTransaction = fstService.Get(Int32.Parse(hfScheduledTransactionId.Value));

            string errorMessage = string.Empty;

            if (fstService.Cancel(currentTransaction, out errorMessage))
            {
                rockContext.SaveChanges();
                content.Text = String.Format("<div class='alert alert-success'>Your recurring {0} has been deleted.</div>", GetAttributeValue("TransactionLabel").ToLower());
            }
            else
            {
                content.Text = String.Format("<div class='alert alert-danger'>An error occured while deleting your scheduled transation. Message: {0}</div>", errorMessage);
            }

            bbtnDelete.Visible = false;
            btnEdit.Visible    = false;
        }
コード例 #5
0
        // コンポーネント初期化
        private void InitComponent()
        {
            etKaisyuLabel         = view.FindViewById <BootstrapEditText>(Resource.Id.et_kaisyuLabel);
            etIdouTenpo           = view.FindViewById <BootstrapEditText>(Resource.Id.et_idouTenpo);
            etIdouTenpo.Focusable = false;

            etIdouTokuisaki  = view.FindViewById <BootstrapEditText>(Resource.Id.et_idouTokuisaki);
            etIdouTodokesaki = view.FindViewById <BootstrapEditText>(Resource.Id.et_idouTodokesaki);

            _ConfirmButton         = view.FindViewById <BootstrapButton>(Resource.Id.btn_confirm);
            _ConfirmButton.Enabled = false;
            _ConfirmButton.Click  += delegate { Confirm(); };

            etKaisyuLabel.KeyPress += (sender, e) => {
                if (e.Event.Action == KeyEventActions.Down && e.KeyCode == Keycode.Enter)
                {
                    e.Handled = true;
                    CommonUtils.HideKeyboard(Activity);
                    CheckKaisyuLabel();
                }
                else
                {
                    e.Handled = false;
                }
            };

            etKaisyuLabel.RequestFocus();
        }
コード例 #6
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_mail_manage_input, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            // コンポーネント初期化
            registFlg = prefs.GetBoolean("registFlg", true);
            if (registFlg)
            {
                SetTitle("メールバッグ登録");
            }
            else
            {
                SetTitle("メールバッグ削除");
            }

            BootstrapButton btnComplete = view.FindViewById <BootstrapButton>(Resource.Id.btn_mailRegistInput_complete);

            btnComplete.Click += delegate { Complete(); };

            etMailBag = view.FindViewById <BootstrapEditText>(Resource.Id.et_mailRegistInput_mail);
            mailBagSu = view.FindViewById <TextView>(Resource.Id.txt_mailRegistInput_mailbagSu);
            mail_back = 0;

            etMailBag.RequestFocus();

            return(view);
        }
コード例 #7
0
ファイル: BootstrapExt.cs プロジェクト: whyjustin/HWIX
 private static string ClassFromButton(BootstrapButton button)
 {
     var btn = "btn";
     switch (button) {
         case BootstrapButton.Primary:
             btn += " btn-primary";
             break;
         case BootstrapButton.Info:
             btn += " btn-info";
             break;
         case BootstrapButton.Success:
             btn += " btn-success";
             break;
         case BootstrapButton.Warning:
             btn += " btn-warning";
             break;
         case BootstrapButton.Danger:
             btn += " btn-danger";
             break;
         case BootstrapButton.Inverse:
             btn += " btn-inverse";
             break;
         case BootstrapButton.Link:
             btn += " btn-link";
             break;
     }
     return btn;
 }
コード例 #8
0
        private void InitComponent()
        {
            SetTitle("納品検品");

            TextView txtTokuisaki = view.FindViewById <TextView>(Resource.Id.txt_nohinwork_tokuisakiNm);

            txtTokuisaki.Text = prefs.GetString("tokuisaki_nm", "");
            TextView txtTodokesaki = view.FindViewById <TextView>(Resource.Id.txt_nohinwork_todokesakiNm);

            txtTodokesaki.Text = prefs.GetString("todokesaki_nm", "");;

            tvCase                 = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_case);
            tvOricon               = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_oricon);
            tvSonota               = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_sonota);
            tvIdo                  = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_ido);
            tvMail                 = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_mail);
            tvFuteikei             = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_futeikei);
            tvHansoku              = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_hansoku);
            tvTc                   = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_tc);
            tvTsumidai             = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_tsumidaisu);
            tvAll                  = view.FindViewById <TextView>(Resource.Id.txt_nohinWork_all);
            tvmatehanNm            = view.FindViewById <TextView>(Resource.Id.matehanNm);
            nohinWorkButton        = view.FindViewById <BootstrapButton>(Resource.Id.nohinButton);
            nohinWorkButton.Click += delegate {
                if (tsumikomiDataList.Count == ko_su)
                {
                    Log.Debug(TAG, "MAIN NOHIN COMPLETE");
                    editor.PutString("menu_flg", "2");
                    editor.PutBoolean("nohinWorkEndFlag", true);
                    editor.Apply();

                    ShowDialog("報告", "納品検品が\n完了しました。\n\nお疲れ様でした!", () => { FragmentManager.PopBackStack(FragmentManager.GetBackStackEntryAt(2).Id, 0); });
                }
                else
                {
                    nohinWorkButton.Visibility = ViewStates.Gone;
                    kaizoButton.Visibility     = ViewStates.Visible;

                    tvCase.Text     = "0";
                    tvOricon.Text   = "0";
                    tvFuteikei.Text = "0";
                    tvTc.Text       = "0";
                    tvIdo.Text      = "0";
                    tvMail.Text     = "0";
                    tvHansoku.Text  = "0";
                    tvSonota.Text   = "0";
                }
            };

            kaizoButton        = view.FindViewById <BootstrapButton>(Resource.Id.kaizoButton);
            kaizoButton.Click += delegate {
                editor.PutString("menu_flg", "2");
                editor.Apply();
                StartFragment(FragmentManager, typeof(NohinMailBagPasswordFragment));
            };

            nohinWorkButton.Visibility = ViewStates.Gone;
            kaizoButton.Visibility     = ViewStates.Visible;
        }
コード例 #9
0
        // コンポーネント初期化
        private void InitComponent()
        {
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            SetTitle("貸出登録");

            BootstrapButton btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.btn_matehan_confirm);

            etKasidatuDate             = view.FindViewById <BootstrapEditText>(Resource.Id.et_matehan_kasidatuDate);
            etKasidatuTarget           = view.FindViewById <BootstrapEditText>(Resource.Id.et_matehan_kasidatuTarget);
            etKasidatuTarget.KeyPress += (sender, e) => {
                if (e.Event.Action == KeyEventActions.Down && e.KeyCode == Keycode.Enter)
                {
                    e.Handled = true;
                    CommonUtils.HideKeyboard(Activity);

                    if (etKasidatuTarget.Text != "")
                    {
                        SearchBinNo();
                    }
                }
                else
                {
                    e.Handled = false;
                }
            };

            btnConfirm.Click           += delegate { SearchBinNo(); };
            etKasidatuDate.FocusChange += (sender, e) => {
                if (e.HasFocus)
                {
                    etKasidatuDate.Text = etKasidatuDate.Text.Replace("/", "");
                    etKasidatuDate.SetSelection(etKasidatuDate.Text.Length);
                }
                else
                {
                    try
                    {
                        etKasidatuDate.Text = CommonUtils.GetDateYYYYMMDDwithSlash(etKasidatuDate.Text);
                    }
                    catch
                    {
                        ShowDialog("エラー", "正しい日付を入力してください", () => {
                            etKasidatuDate.Text = "";
                            etKasidatuDate.RequestFocus();
                        });
                    }
                }
            };

            BootstrapButton btnSearch = view.FindViewById <BootstrapButton>(Resource.Id.btn_matehan_kasidasiSakiSearch);

            btnSearch.Click += delegate { SearchKasidasiSaki(); };

            //etKasidatuDate.Text = "18/03/20";
            etKasidatuDate.Text = DateTime.Now.ToString("yyyy/MM/dd");
            etKasidatuTarget.RequestFocus();
        }
コード例 #10
0
        // コンポーネント初期化
        private void InitComponent()
        {
            etKaisyuDate              = view.FindViewById <BootstrapEditText>(Resource.Id.et_idouRegistSelect_kaisyuDate);
            etKaisyuDate.FocusChange += (sender, e) => {
                if (e.HasFocus)
                {
                    etKaisyuDate.Text = etKaisyuDate.Text.Replace("/", "");
                    etKaisyuDate.SetSelection(etKaisyuDate.Text.Length);
                }
                else
                {
                    try
                    {
                        etKaisyuDate.Text = CommonUtils.GetDateYYYYMMDDwithSlash(etKaisyuDate.Text);
                    }
                    catch
                    {
                        ShowDialog("エラー", "正しい日付を入力してください。", () => {
                            etKaisyuDate.Text = "";
                            etKaisyuDate.RequestFocus();
                        });
                    }
                }
            };

            etHaisoDate              = view.FindViewById <BootstrapEditText>(Resource.Id.et_idouRegistSelect_haisoDate);
            etHaisoDate.FocusChange += (sender, e) => {
                if (e.HasFocus)
                {
                    etHaisoDate.Text = etHaisoDate.Text.Replace("/", "");
                    etHaisoDate.SetSelection(etHaisoDate.Text.Length);
                }
                else
                {
                    try
                    {
                        etHaisoDate.Text = CommonUtils.GetDateYYYYMMDDwithSlash(etKaisyuDate.Text);
                    }
                    catch
                    {
                        ShowDialog("エラー", "正しい日付を入力してください。", () => {
                            etHaisoDate.Text = "";
                            etHaisoDate.RequestFocus();
                        });
                    }
                }
            };

            BootstrapButton btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.btn_idouRegistSelect_confirm);

            btnConfirm.Click += delegate { Confirm(); };

            etKaisyuDate.Text = DateTime.Now.ToString("yyyy/MM/dd");
            etHaisoDate.Text  = DateTime.Now.AddDays(1).ToString("yyyy/MM/dd");
        }
コード例 #11
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_tsumikae_Idou_saki, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            SetTitle("移動先マテハン");

            txtCase     = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_case);
            txtOricon   = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_oricon);
            txtIdosu    = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_idosu);
            txtMail     = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_mail);
            txtSonota   = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_sonota);
            txtFuteikei = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_futeikei);
            txtHansoku  = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_hansoku);
            txtTc       = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_tc);
            txtKosu     = view.FindViewById <TextView>(Resource.Id.txt_tsumikae_kosu);

            btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.confirmButton);

            txtCase.Text     = prefs.GetString("sk_case_su", "0");
            txtOricon.Text   = prefs.GetString("sk_oricon_su", "0");
            txtIdosu.Text    = prefs.GetString("sk_ido_su", "0");
            txtMail.Text     = prefs.GetString("sk_mail_su", "0");
            txtSonota.Text   = prefs.GetString("sk_sonota_su", "0");
            txtFuteikei.Text = prefs.GetString("sk_futeikei_su", "0");
            txtHansoku.Text  = prefs.GetString("sk_hansoku_su", "0");
            txtTc.Text       = prefs.GetString("sk_sonota_su", "0");
            txtKosu.Text     = prefs.GetString("sk_ko_su", "0");

            souko_cd  = prefs.GetString("souko_cd", "");
            kitaku_cd = prefs.GetString("kitaku_cd", "");

            menuFlag  = prefs.GetInt("menuFlag", 1);
            btvQty    = 0;
            btvScnFlg = 0;

            btnConfirm.Text   = menuFlag != 3 ? "完了" : "確定";
            btnConfirm.Click += delegate { if (btvScnFlg > 0)
                                           {
                                               CompleteIdou();
                                           }
            };

            Bundle bundle = Arguments;

            motoInfoList = JsonConvert.DeserializeObject <List <Ido> >(bundle.GetString("motoInfo"));

            if (menuFlag == 1 || menuFlag == 2)
            {
                btnConfirm.Enabled = false;
            }

            return(view);
        }
コード例 #12
0
        /// <summary>
        /// Handles the Click event of the bbtnDelete control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void bbtnDelete_Click(object sender, EventArgs e)
        {
            /* 2021-08-27 MDP
             *
             * We really don't want to actually delete a FinancialScheduledTransaction.
             * Just inactivate it, even if there aren't FinancialTransactions associated with it.
             * It is possible the the Gateway has processed a transaction on it that Rock doesn't know about yet.
             * If that happens, Rock won't be able to match a record for that downloaded transaction!
             * We also might want to match inactive or "deleted" schedules on the Gateway to a person in Rock,
             * so we'll need the ScheduledTransaction to do that.
             *
             * So, don't delete ScheduledTransactions.
             *
             */

            BootstrapButton bbtnDelete = ( BootstrapButton )sender;
            RepeaterItem    riItem     = ( RepeaterItem )bbtnDelete.NamingContainer;

            HiddenField hfScheduledTransactionId = ( HiddenField )riItem.FindControl("hfScheduledTransactionId");
            Literal     lLavaContent             = ( Literal )riItem.FindControl("lLavaContent");
            Button      btnEdit = ( Button )riItem.FindControl("btnEdit");

            using (var rockContext = new Rock.Data.RockContext())
            {
                FinancialScheduledTransactionService fstService = new FinancialScheduledTransactionService(rockContext);
                var currentTransaction = fstService.Get(hfScheduledTransactionId.Value.AsInteger());
                if (currentTransaction != null && currentTransaction.FinancialGateway != null)
                {
                    currentTransaction.FinancialGateway.LoadAttributes(rockContext);
                }

                string errorMessage = string.Empty;
                if (fstService.Cancel(currentTransaction, out errorMessage))
                {
                    try
                    {
                        fstService.GetStatus(currentTransaction, out errorMessage);
                    }
                    catch
                    {
                        // Ignore
                    }

                    rockContext.SaveChanges();
                    lLavaContent.Text = string.Format("<div class='alert alert-success'>Your scheduled {0} has been deleted.</div>", GetAttributeValue(AttributeKey.TransactionLabel).ToLower());
                }
                else
                {
                    lLavaContent.Text = string.Format("<div class='alert alert-danger'>An error occurred while deleting your scheduled transaction. Message: {0}</div>", errorMessage);
                }
            }

            bbtnDelete.Visible = false;
            btnEdit.Visible    = false;
        }
コード例 #13
0
        protected void rRoster_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            var itemData = ( GroupMemberData )e.Item.DataItem;

            if (itemData != null)
            {
                BootstrapButton btnRosterEmail = e.Item.FindControl("btnRosterEmail") as BootstrapButton;
                btnRosterEmail.Text   = itemData.Email;
                btnRosterEmail.Click += (a, b) => showRosterEmail(itemData.Id);
            }
        }
コード例 #14
0
        protected override void CreateChildControls()
        {
            BootstrapButton button = new BootstrapButton();

            button.Text     = "<i class=\"fa fa-arrow-alt-circle-right\"></i>";
            button.ToolTip  = "Continue";
            button.CssClass = "btn btn-primary btn-sm pull-right";
            button.Click   += btnContinue_Click;
            gdGivingUnits.Actions.Controls.Add(button);
            gdGivingUnits.Actions.ShowExcelExport   = false;
            gdGivingUnits.Actions.ShowMergeTemplate = false;
        }
コード例 #15
0
ファイル: MatehanWorkFragment.cs プロジェクト: kjh33191/HTT
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_matehan_work, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            // DB helper
            nohinMateHelper = new SndNohinMateHelper();
            mateFileHelper  = new MateFileHelper();

            // コンポーネント初期化
            SetTitle("貸出登録");

            TextView vendorNm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMatehan_vendorName);

            matehan1Nm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMatehan_matehan1);
            matehan2Nm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMatehan_matehan2);
            matehan3Nm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMatehan_matehan3);
            matehan4Nm = view.FindViewById <TextView>(Resource.Id.txt_nohinKaisyuMatehan_matehan4);

            matehan1Su = view.FindViewById <BootstrapEditText>(Resource.Id.et_nohinKaisyuMatehan_matehan1);
            matehan2Su = view.FindViewById <BootstrapEditText>(Resource.Id.et_nohinKaisyuMatehan_matehan2);
            matehan3Su = view.FindViewById <BootstrapEditText>(Resource.Id.et_nohinKaisyuMatehan_matehan3);
            matehan4Su = view.FindViewById <BootstrapEditText>(Resource.Id.et_nohinKaisyuMatehan_matehan4);

            mateRental1 = view.FindViewById <TextView>(Resource.Id.matehanRental1);
            mateRental2 = view.FindViewById <TextView>(Resource.Id.matehanRental2);
            mateRental3 = view.FindViewById <TextView>(Resource.Id.matehanRental3);
            mateRental4 = view.FindViewById <TextView>(Resource.Id.matehanRental4);

            BootstrapButton button1 = view.FindViewById <BootstrapButton>(Resource.Id.btn_nohinKaisyuMatehan_confirm);

            button1.Click += delegate { ConfirmMatehanKaisyu(); };

            vendorNm.Text = prefs.GetString("vendor_nm", "");

            mate030List = WebService.RequestMate030(prefs.GetString("vendor_cd", ""));
            matehanList = new List <MateFile>();

            foreach (MATE030 mate030 in mate030List)
            {
                string   code_name = WebService.RequestMate040(mate030.matehan_cd);
                MateFile mateFile  = new MateFile();
                mateFile.matehan_cd = mate030.matehan_cd;
                mateFile.matehan_nm = code_name;
                matehanList.Add(mateFile);
            }

            SetMateVendorInfo(prefs.GetString("vendor_cd", ""));
            matehan1Su.RequestFocus();

            return(view);
        }
コード例 #16
0
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Controls.Clear();
            CreateChildControls(this, Controls);

            groupsDisplay          = new Panel();
            groupsDisplay.CssClass = "panel panel-default";

            templateDropDownList                       = new RockDropDownList();
            templateDropDownList.Label                 = "Check-in Template";
            templateDropDownList.ID                    = "templateDropDownList_" + this.ID;
            templateDropDownList.CssClass              = "input-sm";
            templateDropDownList.DataTextField         = "Name";
            templateDropDownList.DataValueField        = "Id";
            templateDropDownList.AutoPostBack          = true;
            templateDropDownList.SelectedIndexChanged += templateDropDownList_SelectedIndexChanged;

            groupTypeDropDownList                       = new RockDropDownList();
            groupTypeDropDownList.Visible               = false;
            groupTypeDropDownList.Label                 = "Check-in Area";
            groupTypeDropDownList.ID                    = "groupTypeDropDownList_" + this.ID;
            groupTypeDropDownList.CssClass              = "input-sm";
            groupTypeDropDownList.DataTextField         = "Name";
            groupTypeDropDownList.DataValueField        = "Id";
            groupTypeDropDownList.AutoPostBack          = true;
            groupTypeDropDownList.SelectedIndexChanged += groupTypeDropDownList_SelectedIndexChanged;

            groupDropDownList                       = new RockDropDownList();
            groupDropDownList.Visible               = false;
            groupDropDownList.Label                 = "Check-in Group";
            groupDropDownList.ID                    = "groupDropDownList_" + this.ID;
            groupDropDownList.CssClass              = "input-sm";
            groupDropDownList.DataTextField         = "Name";
            groupDropDownList.DataValueField        = "Id";
            groupDropDownList.AutoPostBack          = true;
            groupDropDownList.SelectedIndexChanged += groupDropDownList_SelectedIndexChanged;

            addButton          = new BootstrapButton();
            addButton.Text     = "Add Group";
            addButton.Visible  = false;
            addButton.CssClass = "btn btn-primary btn-block clearfix";
            addButton.Click   += addButton_Click;

            Controls.Add(groupsDisplay);
            Controls.Add(templateDropDownList);
            Controls.Add(groupTypeDropDownList);
            Controls.Add(groupDropDownList);
            Controls.Add(addButton);

            BindTemplateDropDown();
            UpdateGroupsDisplay();
        }
コード例 #17
0
ファイル: IdouNohinWorkFragment.cs プロジェクト: kjh33191/HTT
        // コンポーネント初期化
        private void InitComponent()
        {
            BootstrapButton completeButton = view.FindViewById <BootstrapButton>(Resource.Id.btn_confirm);

            completeButton.Click += delegate { Confirm(); };

            BootstrapEditText etKaisyuLabel = view.FindViewById <BootstrapEditText>(Resource.Id.et_kaisyuLabel);

            TextView task_cnt = view.FindViewById <TextView>(Resource.Id.kaisyuLabelSu);

            etKaisyuLabel.RequestFocus();
        }
コード例 #18
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view = inflater.Inflate(Resource.Layout.fragment_tsumikomi_manager, container, false);
            SetTitle("積込検品");

            BootstrapButton managerConfirmBtn = view.FindViewById <BootstrapButton>(Resource.Id.btn_tsumikomiManger_managerConfirm);

            managerConfirmBtn.Click += delegate {
                StartFragment(FragmentManager, typeof(TsumikomiPassFragment));
            };

            return(view);
        }
コード例 #19
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view               = inflater.Inflate(Resource.Layout.fragment_nohin_mailBag_nohin, container, false);
            prefs              = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor             = prefs.Edit();
            sndNohinMailHelper = new SndNohinMailHelper();
            mbFileHelper       = new MbFileHelper();

            tokuisakiCd  = prefs.GetString("tokuisaki_cd", "");
            todokesakiCd = prefs.GetString("todokesaki_cd", "");

            SetTitle("メールバック納品");
            SetFooterText(" F1:解除");

            TextView txtTokusakiName = view.FindViewById <TextView>(Resource.Id.txt_nohinMailBagNohin_tokuisakiNm);

            txtTokusakiName.Text = prefs.GetString("tokuisaki_nm", "");

            etMailBagNumber      = view.FindViewById <BootstrapEditText>(Resource.Id.et_nohinMailBagNohin_mailbagNumber);
            etMailBagNumber.Text = "0";

            List <SndNohinMail> mailList = sndNohinMailHelper.SelectAll();

            if (mailList.Count > 0)
            {
                etMailBagNumber.Text = mailList.Count.ToString();
            }

            // メールバッグ件数取得
            mailbackCnt = mbFileHelper.GetMailbackCount();

            BootstrapButton kaizoButton = view.FindViewById <BootstrapButton>(Resource.Id.btn_nohinMailBagNohin_kaizo);

            kaizoButton.Click += delegate {
                //menu_flg
                editor.PutString("menu_flg", "1");
                editor.Apply();
                StartFragment(FragmentManager, typeof(NohinMailBagPasswordFragment));
            };

            BootstrapButton muButton = view.FindViewById <BootstrapButton>(Resource.Id.btn_nohinMailBagNohin_mu);

            muButton.Click += delegate { CompleteMailNohin(); };

            if (mailbackCnt != 0)
            {
                muButton.Enabled = false;
            }

            return(view);
        }
コード例 #20
0
ファイル: BootstrapExt.cs プロジェクト: whyjustin/HWIX
        public static MvcHtmlString SubmitIcon(this HtmlHelper html, BootstrapButton btn, BootstrapIcon icon, bool isWhite = false)
        {
            var iBuilder = new TagBuilder("i");
            iBuilder.MergeAttribute("class", ClassFromIcon(icon, isWhite));
            string iHtml = iBuilder.ToString(TagRenderMode.Normal);

            var inputBuilder = new TagBuilder("button");
            inputBuilder.MergeAttribute("class", ClassFromButton(btn));
            inputBuilder.MergeAttribute("type", "submit");
            inputBuilder.InnerHtml = iHtml;
            string inputHtml = inputBuilder.ToString(TagRenderMode.Normal);

            return MvcHtmlString.Create(inputHtml);
        }
コード例 #21
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            SetTitle("入荷検品");
            SetFooterText("");

            view = inflater.Inflate(Resource.Layout.fragment_tsumikae_idou_matehan, container, false);

            prefs    = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor   = prefs.Edit();
            menuFlag = prefs.GetInt("menuFlag", 1);

            motoInfoList = JsonConvert.DeserializeObject <List <Ido> >(Arguments.GetString("motoInfo"));

            etMantanVendor           = view.FindViewById <EditText>(Resource.Id.et_mantan_vendor);
            etMantanVendor.KeyPress += (sender, e) => {
                if (e.Event.Action == KeyEventActions.Down && e.KeyCode == Keycode.Enter)
                {
                    e.Handled = true;
                    CommonUtils.HideKeyboard(Activity);
                    SetMatehanList();
                }
                else
                {
                    e.Handled = false;
                }
            };

            txtVenderName      = view.FindViewById <TextView>(Resource.Id.vendorName);
            txtVenderName.Text = prefs.GetString("vendor_nm", "");

            BootstrapButton vendorSearchButton = view.FindViewById <BootstrapButton>(Resource.Id.vendorSearch);

            vendorSearchButton.Click += delegate { StartFragment(FragmentManager, typeof(KosuVendorAllSearchFragment)); };

            // ベンダー別マテハンコード取得
            string vendorCode = prefs.GetString("vendor_cd", ""); // prefs.GetString("vendor_cd", "");

            etMantanVendor.Text = vendorCode;

            listView            = view.FindViewById <ListView>(Resource.Id.lv_matehanList);
            listView.ItemClick += (object sender, ItemClickEventArgs e) =>
            {
                SelectListViewItem(e.Position);
            };

            SetMatehanList();


            return(view);
        }
コード例 #22
0
ファイル: BootstrapExt.cs プロジェクト: whyjustin/HWIX
        public static MvcHtmlString ActionIcon(this HtmlHelper html, string onClick, BootstrapButton btn, BootstrapIcon icon, bool isWhite = false)
        {
            var iBuilder = new TagBuilder("i");
            iBuilder.MergeAttribute("class", ClassFromIcon(icon, isWhite));
            string iHtml = iBuilder.ToString(TagRenderMode.Normal);

            var anchorBuilder = new TagBuilder("a");
            anchorBuilder.MergeAttribute("href", "#");
            anchorBuilder.MergeAttribute("class", ClassFromButton(btn));
            anchorBuilder.MergeAttribute("onclick", onClick);
            anchorBuilder.InnerHtml = iHtml;
            string anchorHtml = anchorBuilder.ToString(TagRenderMode.Normal);

            return MvcHtmlString.Create(anchorHtml);
        }
コード例 #23
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_tsumikomi_work, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            SetTitle("積込検品");

            view.FindViewById <TextView>(Resource.Id.txt_tsumikomiWork_tokuisakiNm).Text = prefs.GetString("tokuisaki_nm", "");
            etKosu     = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_kosu);
            etCarLabel = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_carLabel);
            etCarry    = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_carry);
            etKargo    = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_kargoCar);
            etCard     = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_card);
            etBara     = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_bara);
            etSonata   = view.FindViewById <EditText>(Resource.Id.et_tsumikomiWork_sonota);

            _CompleteButton         = view.FindViewById <BootstrapButton>(Resource.Id.completeButton);
            _CompleteButton.Click  += delegate { StartFragment(FragmentManager, typeof(TsumikomiPassFragment)); };
            _CompleteButton.Enabled = false;

            _IdouButton        = view.FindViewById <BootstrapButton>(Resource.Id.idouButton);
            _IdouButton.Click += delegate { StartFragment(FragmentManager, typeof(TsumikomiIdouMenuFragment)); };

            souko_cd      = prefs.GetString("souko_cd", "");
            kitaku_cd     = prefs.GetString("kitaku_cd", "");
            syuka_date    = prefs.GetString("syuka_date", "");
            tokuisaki_cd  = prefs.GetString("tokuisaki_cd", "");
            todokesaki_cd = prefs.GetString("todokesaki_cd", "");
            bin_no        = prefs.GetString("bin_no", "");
            course        = prefs.GetString("course", "");

            zoubin_flg = prefs.GetInt("zoubin_flg", 1);
            kansen_kbn = prefs.GetString("kansen_kbn", "1");

            etKosu.SetBackgroundColor(Android.Graphics.Color.Yellow);

            if (zoubin_flg == 1)
            {
                GetTenpoMatehanInfo();  // 作業5, 6 定番コース단골코스(zoubin_flg = 1)
            }
            else
            {
                GetCountSouko(); // 作業7, 8 増便コース증편코스(zoubin_flg >= 2)
            }

            return(view);
        }
コード例 #24
0
ファイル: BootstrapExt.cs プロジェクト: whyjustin/HWIX
        public static MvcHtmlString ActionIcon(this HtmlHelper html, string action, string controllerName, object routeValues, BootstrapButton btn, BootstrapIcon icon, bool isWhite = false)
        {
            var url = new UrlHelper(html.ViewContext.RequestContext);

            var iBuilder = new TagBuilder("i");
            iBuilder.MergeAttribute("class", ClassFromIcon(icon, isWhite));
            string iHtml = iBuilder.ToString(TagRenderMode.Normal);

            var anchorBuilder = new TagBuilder("a");
            anchorBuilder.MergeAttribute("href", url.Action(action, controllerName, routeValues));
            anchorBuilder.MergeAttribute("class", ClassFromButton(btn));
            anchorBuilder.InnerHtml = iHtml;
            string anchorHtml = anchorBuilder.ToString(TagRenderMode.Normal);

            return MvcHtmlString.Create(anchorHtml);
        }
コード例 #25
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (CurrentUser != null && UserCanAdministrate)
            {
                updatePanel = new UpdatePanel();
                this.Controls.AddAt(0, updatePanel);

                Panel panel = new Panel
                {
                    CssClass = "avalanche-header"
                };
                updatePanel.ContentTemplateContainer.Controls.Add(panel);

                Literal literal = new Literal
                {
                    Text = BlockCache.Name
                };
                panel.Controls.Add(literal);

                BootstrapButton btnDetails = new BootstrapButton
                {
                    Text     = "Show Details",
                    CssClass = "btn btn-default btn-xs pull-right"
                };

                panel.Controls.Add(btnDetails);

                var target = Page.Request.Params["__EVENTTARGET"];
                if (target != null && target == btnDetails.UniqueID &&
                    (ViewState["ShowDetails"] != null && ( bool )ViewState["ShowDetails"] == true))
                {
                    ViewState["ShowDetails"] = false;
                }
                else if ((target != null && target == btnDetails.UniqueID && (ViewState["ShowDetails"] == null || ( bool )ViewState["ShowDetails"] == false)) ||
                         ViewState["ShowDetails"] != null && ( bool )ViewState["ShowDetails"] == true)
                {
                    ShowDetails();
                    btnDetails.Text = "Hide Details";
                }
            }
            else
            {
                this.Visible = false;
            }
        }
コード例 #26
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view = inflater.Inflate(Resource.Layout.fragment_kosu_complete, container, false);
            SetTitle("届先指定検品");
            SetFooterText("");

            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            BootstrapButton confirmButton = view.FindViewById <BootstrapButton>(Resource.Id.completeButton);

            confirmButton.Click += delegate {
                BackToMainMenu();
            };

            return(view);
        }
コード例 #27
0
        // コンポーネント初期化
        private void InitComponent()
        {
            bool registFlg = prefs.GetBoolean("registFlg", true);

            if (registFlg)
            {
                SetTitle("メールバッグ登録");
            }
            else
            {
                SetTitle("メールバッグ削除");
            }

            etBin = view.FindViewById <BootstrapEditText>(Resource.Id.et_mailRegistSelect_bin);

            BootstrapButton btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.btn_mailRegistSelect_confirm);

            btnConfirm.Click += delegate { Confirm(); };

            etHaisoDate              = view.FindViewById <BootstrapEditText>(Resource.Id.et_mailRegistSelect_haiso);
            etHaisoDate.FocusChange += (sender, e) => {
                if (e.HasFocus)
                {
                    etHaisoDate.Text = etHaisoDate.Text.Replace("/", "");
                    etHaisoDate.SetSelection(etHaisoDate.Text.Length);
                }
                else
                {
                    try
                    {
                        etHaisoDate.Text = CommonUtils.GetDateYYYYMMDDwithSlash(etHaisoDate.Text);
                    }
                    catch
                    {
                        ShowDialog("エラー", "日付を正しく入力してください。", () => {
                            etHaisoDate.Text = "";
                            etHaisoDate.RequestFocus();
                        });
                    }
                }
            };

            etHaisoDate.Text = DateTime.Now.ToString("yyyy/MM/dd");
            etBin.RequestFocus();
        }
コード例 #28
0
    protected void btnDeleteChild_Click(object sender, EventArgs e)
    {
        BootstrapButton btn = ( BootstrapButton )sender;
        int?            i   = btn.CommandArgument.AsIntegerOrNull();

        if (i != null)
        {
            List <Child> children = ((List <Child>)ViewState["Children"]);
            children.Remove(children[i.Value]);
            if (!children.Any())
            {
                btnChildCancel.Visible  = false;
                pnlChildSummary.Visible = false;
                pnlChild.Visible        = true;
            }
        }
        SaveViewState();
    }
コード例 #29
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_kosu_mantan, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();
            HideFooter();

            kosuMenuflag = prefs.GetInt(Const.KOSU_MENU_FLAG, (int)Const.KOSU_MENU.TODOKE); // 画面区分

            listView            = view.FindViewById <ListView>(Resource.Id.lv_matehanList);
            listView.ItemClick += (object sender, ItemClickEventArgs e) =>
            {
                SelectListViewItem(e.Position);
            };

            txtVenderName      = view.FindViewById <TextView>(Resource.Id.vendorName);
            txtVenderName.Text = prefs.GetString("vendor_nm", "");

            etMantanVendor      = view.FindViewById <BootstrapEditText>(Resource.Id.et_mantan_vendor);
            etMantanVendor.Text = prefs.GetString("vendor_cd", "");

            BootstrapButton vendorSearchButton = view.FindViewById <BootstrapButton>(Resource.Id.vendorSearch);

            vendorSearchButton.Click += delegate { StartFragment(FragmentManager, typeof(KosuVendorAllSearchFragment)); };

            etMantanVendor.KeyPress += (sender, e) => {
                if (e.Event.Action == KeyEventActions.Down && e.KeyCode == Keycode.Enter)
                {
                    e.Handled = true;
                    CommonUtils.HideKeyboard(Activity);
                    SetMatehanList();
                }
                else
                {
                    e.Handled = false;
                }
            };

            SetMatehanList();

            return(view);
        }
        /// <summary>
        /// Handles the Click event of the bbtnDelete control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void bbtnDelete_Click(object sender, EventArgs e)
        {
            BootstrapButton bbtnDelete = ( BootstrapButton )sender;
            RepeaterItem    riItem     = ( RepeaterItem )bbtnDelete.NamingContainer;

            HiddenField hfScheduledTransactionId = ( HiddenField )riItem.FindControl("hfScheduledTransactionId");
            Literal     content = ( Literal )riItem.FindControl("lLiquidContent");
            Button      btnEdit = ( Button )riItem.FindControl("btnEdit");

            using (var rockContext = new Rock.Data.RockContext())
            {
                FinancialScheduledTransactionService fstService = new FinancialScheduledTransactionService(rockContext);
                var currentTransaction = fstService.Get(hfScheduledTransactionId.Value.AsInteger());
                if (currentTransaction != null && currentTransaction.FinancialGateway != null)
                {
                    currentTransaction.FinancialGateway.LoadAttributes(rockContext);
                }

                string errorMessage = string.Empty;
                if (fstService.Cancel(currentTransaction, out errorMessage))
                {
                    try
                    {
                        fstService.GetStatus(currentTransaction, out errorMessage);
                    }
                    catch
                    {
                        // Ignore
                    }

                    rockContext.SaveChanges();
                    content.Text = string.Format("<div class='alert alert-success'>Your recurring {0} has been deleted.</div>", GetAttributeValue(AttributeKey.TransactionLabel).ToLower());
                }
                else
                {
                    content.Text = string.Format("<div class='alert alert-danger'>An error occurred while deleting your scheduled transaction. Message: {0}</div>", errorMessage);
                }
            }

            bbtnDelete.Visible = false;
            btnEdit.Visible    = false;
        }
コード例 #31
0
        /// <summary>
        /// Generates a dynamic list of people to be selected as the check-in person
        /// </summary>
        private void ShowPeopleList()
        {
            pnlMessage.Visible = false;
            phPeople.Controls.Clear();
            foreach (var family in CurrentCheckInState.CheckIn.Families)
            {
                foreach (var person in family.People)
                {
                    BootstrapButton btnPerson = new BootstrapButton();
                    btnPerson.Text     = person.Person.FullName;
                    btnPerson.CssClass = "btn btn-default btn-lg btn-block";
                    btnPerson.ID       = "btnPerson" + person.Person.Guid.ToString();
                    btnPerson.Click   += (s, e) =>
                    {
                        family.Selected = true;
                        person.Selected = true;
                        SaveState();
                        ShowPersonCheckin();
                    };
                    phPeople.Controls.Add(btnPerson);
                }
            }
            BootstrapButton btnCancel = new BootstrapButton();

            btnCancel.ID       = "btnPhoneCancel";
            btnCancel.CssClass = "btn btn-danger btn-lg btn-block";
            btnCancel.Text     = "Cancel";
            btnCancel.Click   += (s, e) =>
            {
                if (CurrentCheckInState == null)
                {
                    NavigateToPreviousPage();
                    return;
                }
                tbPhone.Text = "";
                CurrentCheckInState.CheckIn = new CheckInStatus();
                pnlMessage.Visible          = true;
                phPeople.Controls.Clear();
            };
            phPeople.Controls.Add(btnCancel);
        }
コード例 #32
0
ファイル: TsumikomiPassFragment.cs プロジェクト: kjh33191/HTT
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view   = inflater.Inflate(Resource.Layout.fragment_tsumikomi_pass, container, false);
            prefs  = PreferenceManager.GetDefaultSharedPreferences(Context);
            editor = prefs.Edit();

            SetTitle("積込検品");

            BootstrapButton pwdConfirmBtn = view.FindViewById <BootstrapButton>(Resource.Id.btn_tsumikomiManger_pwdConfirm);

            pwdConfirmBtn.Click += delegate { CheckPassword(); };

            string soukoCd = prefs.GetString("souko_cd", "");            //倉庫コード
            string hiduke  = prefs.GetString("syuka_date", "");          // 配送日

            passwrod   = WebService.RequestTumikomi130(soukoCd, hiduke); // パスワード取得
            etPassword = view.FindViewById <EditText>(Resource.Id.password);
            etPassword.RequestFocus();

            return(view);
        }
コード例 #33
0
    protected void btnEditChild_Click(object sender, EventArgs e)
    {
        BootstrapButton btn = ( BootstrapButton )sender;
        int?            i   = btn.CommandArgument.AsIntegerOrNull();

        if (i != null)
        {
            ViewState["CurrentChild"] = i;
            List <Child> children = ((List <Child>)ViewState["Children"]);
            tbChildFirstname.Text   = children[i.Value].FirstName;
            tbChildLastname.Text    = children[i.Value].LastName;
            bpChildBirthday.Text    = children[i.Value].DateOfBirth.ToShortDateString();
            rblGender.SelectedValue = children[i.Value].Gender;
            gpGrade.SelectedValue   = children[i.Value].Grade.ToString();
            tbAllergies.Text        = children[i.Value].Allergies;
            tbSpecialNote.Text      = children[i.Value].SpecialNote;
        }
        pnlChildSummary.Visible = false;
        pnlChild.Visible        = true;
        SaveViewState();
    }
コード例 #34
0
        // コンポーネント初期化
        private void InitComponent()
        {
            etTokuisakiCd            = view.FindViewById <BootstrapEditText>(Resource.Id.et_tokuisakiCd);
            etTodokesakiCd           = view.FindViewById <BootstrapEditText>(Resource.Id.et_todokesakiCd);
            etTodokesakiCd.KeyPress += (sender, e) => {
                if (e.Event.Action == KeyEventActions.Down && e.KeyCode == Keycode.Enter)
                {
                    e.Handled = true;
                    CommonUtils.HideKeyboard(Activity);
                    Confirm();
                }
                else
                {
                    e.Handled = false;
                }
            };
            txtTodokesakiNm = view.FindViewById <TextView>(Resource.Id.txt_todokesakiName);
            BootstrapButton btnConfirm = view.FindViewById <BootstrapButton>(Resource.Id.btn_confirm);

            btnConfirm.Click += delegate { Confirm(); };
        }
コード例 #35
0
 public IBootstrapDropDownList Append(BootstrapButton button)
 {
     this._model.appendButtons.Add(button);
     return this;
 }