예제 #1
0
        /// <summary>
        /// 顯示保養動作列表
        /// </summary>
        private void BgActionInfo()
        {
            if (this.ldvTypeList.SelectedItems.Count > 0)
            {
                Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info maintainItem = new Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info();

                maintainItem.mom_cMachineModel = this.ldvTypeList.SelectedItems[0].SubItems[0].Text;

                var MaintainOperations = _maintainOperationMasterBL.FindRecord(maintainItem);

                this.ldvActionInfo.Items.Clear();

                for (int index = 0; index < MaintainOperations.Count; index++)
                {
                    Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info info = MaintainOperations[index] as Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info;

                    ListViewItem item = new ListViewItem();
                    item.SubItems.Add("");
                    item.SubItems.Add("");
                    item.SubItems[0].Text = info.mom_cOperationName;
                    item.SubItems[1].Text = info.mom_cOperationType;
                    item.Tag = info;

                    this.ldvActionInfo.Items.Add(item);

                }
            }
            else
            {
                this.stepNo = 1;
                CheckSetp();
            }
        }
예제 #2
0
        /// <summary>
        /// 刷新數據
        /// </summary>
        private void BindingView()
        {
            Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info maintainItem = new Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info();
            maintainItem.mom_cMachineModel = cbxPrinterType.SelectedValue.ToString();

            var MaintainOperations = _maintainOperationMasterBL.FindRecord(maintainItem);

            this.lvInfo.BeginUpdate();

            lvInfo.SetDataSource<Model.HBPMS.Management.RunningManagement.MaintainOperationMaster_mom_Info>(MaintainOperations);

            this.lvInfo.EndUpdate();

            ConvertMachineCodeToRemark();
        }