コード例 #1
0
        private void InitForm()
        {
            tbTitle.Text           = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AsileCfg");
            btnCancel.Content      = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Cancel");
            btnSave.Content        = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Save");
            btnSetTray.Content     = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_SetTray_Price");
            btnSelectGoods.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_ChoiceGoods");
            btnRemoveGoods.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_RemoveGoods");

            tbAsilePrice.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Price_Cfg");
            tbSpringNum.Text  = PubHelper.p_LangOper.GetStringBundle("Pub_SpringNum");
            ////tbAsileStatus.Text = PubHelper.p_LangOper.GetStringBundle("Pub_AsileStatus");
            tbAsileGoods.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Goods_Asile");
            tbMcdCode.Text    = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Goods_Code");
            tbMcdName.Text    = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Goods_Name");
            tbMcdContent.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Goods_Content");

            rbUsing.Content = PubHelper.p_LangOper.GetStringBundle("Pub_AsileKind_Run");
            rbStop.Content  = PubHelper.p_LangOper.GetStringBundle("Pub_AsileKind_Pause");

            m_Title_NoGoodsTitle = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Stock_NoGoods");

            m_Title_SpringNum = PubHelper.p_LangOper.GetStringBundle("Pub_SpringNum") +
                                PubHelper.p_LangOper.GetStringBundle("Pub_Symbol");

            #region 获取功能管理权限

            ////m_Purview_SetPaPrice = PubHelper.CheckIsManager1Purview_NoMsg("10");
            ////m_Purview_SetSpring = PubHelper.CheckIsManager1Purview_NoMsg("11");
            ////m_Purview_SetPaMcd = PubHelper.CheckIsManager1Purview_NoMsg("12");

            #endregion

            if (PubHelper.p_BusinOper.ConfigInfo.GoodsUploadType == "0")
            {
            }
            switch (PubHelper.p_BusinOper.ConfigInfo.GoodsUploadType)
            {
            case "1":    // 远程更新价格
                tbAsilePrice_Value.IsEnabled = btnSetTray.IsEnabled = false;
                break;

            default:    // 本地设置价格
                tbAsilePrice_Value.IsEnabled = btnSetTray.IsEnabled = true;
                break;
            }

            tbAsilePrice_Value.IsEnabled = PubHelper.CheckIsManager1Purview_NoMsg("10");
        }