Exemplo n.º 1
0
        /// <summary>
        /// 2.验收(产品采购记录)
        /// </summary>
        private void ManagerYS()
        {
            bool bolState = false;

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

                KPS.BLL.YanShouManager ysmanager = new YanShouManager();
                if (ModelData != null)
                {
                    _Modelinfo.ID = ((YanShouInfo)ModelData).ID;
                    bolState      = ysmanager.Update(_Modelinfo);
                }
                else
                {
                    bolState = ysmanager.Add(_Modelinfo);
                }
            }
            catch (Exception ex)
            {
                bolState = false;
            }

            ShowMsgStateInfo(bolState, ModelData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 保存表单数据
        /// </summary>
        public override object GetSaveData()
        {
            KPS.Model.YanShouInfo ysinfo = new YanShouInfo();
            ysinfo.y_cpdm = textBox6.Text.Trim();
            ysinfo.y_cpzczh = string.Format("食药监械({0})字 第({1})号", textBox7.Text.Trim(), textBox3.Text.Trim());
            ysinfo.y_date = dateTimePicker1.Value;
            ysinfo.y_dw = textBox14.Text.Trim();
            ysinfo.y_fhrqz = textBox12.Text.Trim();
            ysinfo.y_ggxh = textBox5.Text.Trim();
            ysinfo.y_ghdw = textBox2.Text.Trim();
            ysinfo.y_isHGZ = radioButton1.Checked;
            ysinfo.y_mjph = textBox9.Text.Trim();
            ysinfo.y_pm = textBox1.Text.Trim();
            ysinfo.y_sccj = textBox13.Text.Trim();
            ysinfo.y_scph = textBox8.Text.Trim();
            ysinfo.y_sl = (int)numericUpDown1.Value;
            ysinfo.y_yxq = textBox4.Text.Trim();
            ysinfo.y_zgy = textBox11.Text.Trim();
            ysinfo.y_zlqk = textBox10.Text.Trim();

            return ysinfo;
        }
Exemplo n.º 3
0
 /// <summary>
 /// 1.2.验收
 /// </summary>
 /// <returns></returns>
 private List<ListColumnInfo> GetYSColumns()
 {
     KPS.Model.YanShouInfo yanshou = new Model.YanShouInfo();
     List<ListColumnInfo> ColumnArray = new List<ListColumnInfo>();
     ColumnArray.Add(new ListColumnInfo("NO", "OrderNumber", 40, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("品名", "y_pm", 120, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("产品代码", "y_cpdm", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("产品注册号", "y_cpzczh", 120, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("日期", "y_date", 120, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("单位", "y_dw", 40, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("复核人", "y_fhrqz", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("规格型号", "y_ggxh", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("供应商", "y_ghdw", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("合格证", "y_isHGZ", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("灭菌批号", "y_mjph", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("生产商", "y_sccj", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("生产批号", "y_scph", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("数量", "y_sl", 40, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("有效期", "y_yxq", 60, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("质量管理员", "y_zgy", 80, HorizontalAlignment.Left, true));
     ColumnArray.Add(new ListColumnInfo("质量情况", "y_zlqk", 100, HorizontalAlignment.Left, true));
     return ColumnArray;
 }
Exemplo n.º 4
0
 public YS(YanShouInfo _model)
 {
     ModelData = _model;
     InitializeComponent();
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(KPS.Model.YanShouInfo model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(KPS.Model.YanShouInfo model)
 {
     return(dal.Add(model));
 }