/// <summary>
        /// 初始化
        /// </summary>
        private void  common_Init(string p_firstId, string p_secondId)
        {
            m_StructService     = EAS.Services.ServiceContainer.GetService <IStructService>();
            m_AllProductService = EAS.Services.ServiceContainer.GetService <IAllProductService>();
            m_firstObj          = m_AllProductService.GetById(p_firstId);
            m_secondObj         = m_AllProductService.GetById(p_secondId);

            this.tb_firstNo.Text      = m_firstObj.PRODUCTNO;
            this.tb_firstMemo.Text    = m_firstObj.MEMO_ZH;
            this.tb_firstVersion.Text = m_firstObj.VERSION;

            this.tb_secondNo.Text      = m_secondObj.PRODUCTNO;
            this.tb_secondMemo.Text    = m_secondObj.MEMO_ZH;
            this.tb_secondVersion.Text = m_secondObj.VERSION;
        }
Exemple #2
0
 public StructController(IStructService dataService)
 {
     DataService = dataService;
 }
        /// <summary>
        /// 初始化
        /// </summary>
        private void common_Init(string p_firstId, string p_secondId)
        {
            m_StructService = EAS.Services.ServiceContainer.GetService<IStructService>();
            m_AllProductService = EAS.Services.ServiceContainer.GetService<IAllProductService>();
            m_firstObj = m_AllProductService.GetById(p_firstId);
            m_secondObj = m_AllProductService.GetById(p_secondId);

            this.tb_firstNo.Text = m_firstObj.PRODUCTNO;
            this.tb_firstMemo.Text = m_firstObj.MEMO_ZH;
            this.tb_firstVersion.Text = m_firstObj.VERSION;

            this.tb_secondNo.Text = m_secondObj.PRODUCTNO;
            this.tb_secondMemo.Text = m_secondObj.MEMO_ZH;
            this.tb_secondVersion.Text = m_secondObj.VERSION;
        }
Exemple #4
0
 /// <summary>
 /// //初始化服务类
 /// </summary>
 private void service_Init()
 {
     m_AllProductService = EAS.Services.ServiceContainer.GetService <IAllProductService>();
     m_StructService     = EAS.Services.ServiceContainer.GetService <IStructService>();
     m_proRecordService  = EAS.Services.ServiceContainer.GetService <IProductProRecordService>();
 }
 /// <summary>
 /// //初始化服务类
 /// </summary>
 private void service_Init()
 {
     m_AllProductService = EAS.Services.ServiceContainer.GetService<IAllProductService>();
     m_StructService = EAS.Services.ServiceContainer.GetService<IStructService>();
     m_proRecordService = EAS.Services.ServiceContainer.GetService<IProductProRecordService>();
 }