wxw
9 天以前 4717389bfc9cdd522b32f2bc04d0e59af8d76621
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -417,7 +417,7 @@
                        //    DateTime lot22;
                        //    if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                        //    {
                        //        throw new Exception("需要请验物料生产日期转换失败");
                        //        throw new Exception("需要请验料生产日期转换失败");
                        //    }
                        //    if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                        //    {
@@ -431,16 +431,16 @@
                            DateTime lot12;
                            if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                            {
                                throw new Exception("需要请验物料生产日期转换失败");
                                throw new Exception("生产日期转换失败,请检查格式是否正确");
                            }
                            lot1 = lot12.ToString("yyyy-MM-dd");
                        }
                        if (!string.IsNullOrEmpty(lot2))
                        {
                            DateTime lot22;
                            if (!DateTime.TryParse(detailModel.Lot1, out lot22))
                            if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                            {
                                throw new Exception("需要请验物料生产日期转换失败");
                                throw new Exception("到期日期转换失败,请检查格式是否正确");
                            }
                            lot2 = lot22.ToString("yyyy-MM-dd");
                        }
@@ -520,6 +520,7 @@
            }
            catch (Exception ex)
            {
                Db.Ado.RollbackTran();
                throw new Exception(ex.Message);
            }
        }
@@ -695,16 +696,16 @@
                            DateTime lot12;
                            if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                            {
                                throw new Exception("需要请验物料生产日期转换失败");
                                throw new Exception("生产日期转换失败,请检查格式是否正确");
                            }
                            detailModel.Lot1 = lot12.ToString("yyyy-MM-dd");
                        }
                        if (!string.IsNullOrEmpty(detailModel.Lot2))
                        {
                            DateTime lot22;
                            if (!DateTime.TryParse(detailModel.Lot1, out lot22))
                            if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                            {
                                throw new Exception("需要请验物料生产日期转换失败");
                                throw new Exception("到期日期转换失败,请检查格式是否正确");
                            }
                            detailModel.Lot2 = lot22.ToString("yyyy-MM-dd");
                        }
@@ -864,6 +865,7 @@
            }
            catch (Exception ex)
            {
                Db.Ado.RollbackTran();
                throw ex;
            }
        }