/// <summary>
        /// 9.质量跟踪
        /// </summary>
        private void ManagerZLGZ()
        {
            bool bolState = false;

            try
            {
                KPS.Model.ProcessLoggingInfo _Modelinfo = (KPS.Model.ProcessLoggingInfo)_control.GetSaveData();
                _Modelinfo.DataType = thisdeviceinfo.DeviceID;

                KPS.BLL.ProcessLoggingManager plmanager = new ProcessLoggingManager();
                if (ModelData != null)
                {
                    _Modelinfo.ProcessID = ((ProcessLoggingInfo)ModelData).ProcessID;
                    bolState             = plmanager.Update(_Modelinfo);
                }
                else
                {
                    bolState = plmanager.Add(_Modelinfo);
                }
            }
            catch (Exception ex)
            {
                bolState = false;
            }

            ShowMsgStateInfo(bolState, ModelData);
        }
Exemple #2
0
        /// <summary>
        /// 保存表单数据
        /// </summary>
        public override object GetSaveData()
        {
            KPS.Model.ProcessLoggingInfo plinfo = new ProcessLoggingInfo();
            plinfo.ProcessContentInquired = textBox1.Text.Trim();
            plinfo.ProcessCustomerUnit = textBox2.Text.Trim();
            plinfo.ProcessDate = dateTimePicker1.Value;
            plinfo.ProcessHandlingSuggestion = textBox5.Text.Trim();
            plinfo.Processlinkman = textBox13.Text.Trim();
            plinfo.ProcessProductName = textBox4.Text.Trim();
            plinfo.ProcessPurchasingDate = dateTimePicker2.Value;
            plinfo.ProcessServiceUser = textBox7.Text.Trim();
            plinfo.ProcessStandard = textBox3.Text.Trim();
            plinfo.Processtel = textBox14.Text.Trim();

            return plinfo;
        }
Exemple #3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(KPS.Model.ProcessLoggingInfo model)
 {
     return(dal.Update(model));
 }
Exemple #4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(KPS.Model.ProcessLoggingInfo model)
 {
     return(dal.Add(model));
 }
Exemple #5
0
 /// <summary>
 /// 质量跟踪信息编辑
 /// </summary>
 /// <param name="_model"></param>
 public ZLGZ(ProcessLoggingInfo _model)
 {
     ModelData = _model;
     InitializeComponent();
 }