Exemple #1
0
        private void save()
        {
            AgainCalefactionProduceLog againCalefactionProduceLog = new AgainCalefactionProduceLog();

            againCalefactionProduceLog.eiId             = long.Parse(cmb_equipmentInfo.SelectedValue.ToString());
            againCalefactionProduceLog.inputDate        = DateTime.Now;
            againCalefactionProduceLog.inputMan         = this.UserName;
            againCalefactionProduceLog.piId             = long.Parse(cmb_personnelInfo.SelectedValue.ToString());
            againCalefactionProduceLog.produceDate      = DateTime.Parse(dtp_produceDate.Value.ToShortDateString());
            againCalefactionProduceLog.ptId             = long.Parse(cmb_produceTeam.SelectedValue.ToString());
            againCalefactionProduceLog.remark           = txt_remark.Text.Trim();
            againCalefactionProduceLog.startMachineTime = dtp_startMachineTime.Value;
            againCalefactionProduceLog.stopMachineTime  = dtp_stopMachineTime.Value;
            againCalefactionProduceLog.weather          = txt_weather.Text.Trim();

            producePlan.saveProduceLog(againCalefactionProduceLog);
        }
Exemple #2
0
 /// <summary>
 /// 保存生产记录
 /// </summary>
 /// <param name="mixtureProduceLog">生产记录对象</param>
 /// <returns></returns>
 public bool saveProduceLog(AgainCalefactionProduceLog againCalefactionProduceLog)
 {
     return(producePlanDB.saveProduceLog(againCalefactionProduceLog));
 }