コード例 #1
0
        public frmPOFind()
        {
            InitializeComponent();
            //加載按鈕圖片
            clsSetButtonImage objBtns = new clsSetButtonImage();

            objBtns.Set_Button_Image(toolStrip1);
        }
コード例 #2
0
        public frmMmFind(string _type)
        {
            InitializeComponent();
            //窗體對象標簽翻譯
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //bs_mat_master中的字段modality用于區分物料的類型:
            //0 自制
            //1 委外
            //2 採購
            //3 成品(F0...)

            //參數_type = "0",允許選擇自制(0),委外(1)的貨品          --(即自制與委外,不包含採購件)
            //參數_type = "1",允許選擇自制(0),委外(1),採購(2)的貨品  --(即全部,包含採購件)
            m_goods_type = _type;
            if (_type == "1")
            {
                chkPur.Enabled = true;
                chkPur.Visible = true;
            }
            else
            {
                chkPur.Enabled = false;
                chkPur.Visible = false;
            }

            NextControl oNext = new NextControl(this, "1");

            oNext.EnterToTab();

            //加載按鈕圖片
            clsSetButtonImage objBtns = new clsSetButtonImage();

            objBtns.Set_Button_Image(toolStrip1);
        }