예제 #1
0
 public frmMixMaterialGroup()
 {
     InitializeComponent();
     _MixMaterialGroupBll = new MixMaterialGroupBL();
     _MixMaterialDetailBll = new MixMaterialDetailBL();
     _MaterialMasterBll = new MaterialMasterBL();
 }
예제 #2
0
        public frmMixMaterialDetail()
        {
            InitializeComponent();
            _MixMaterialGroupBll = new MixMaterialGroupBL();
            _MixMaterialDetailBll = new MixMaterialDetailBL();
            _MaterialMasterBll = new MaterialMasterBL();

            codeMasterBL = MasterBLLFactory.GetBLL<ICodeMasterBL>(MasterBLLFactory.CodeMaster_cmt);

            List<IModelObject> tmp = _MaterialMasterBll.SearchRecords_SQL(new MaterialProfile_mlpf_Info());
            foreach (MaterialProfile_mlpf_Info item in tmp)
            {
                if (_AllMaterial == null)
                    _AllMaterial = new List<MaterialProfile_mlpf_Info>();
                _AllMaterial.Add(item);
            }

            //HardCode  需初始化用戶信息
            if (base.UserInformation == null)
            {
                base.UserInformation = new Model.SysMaster.Sys_UserMaster_usm_Info();
                base.UserInformation.usm_cUserLoginID = "sys";
            }
        }