| | |
| | | } |
| | | else |
| | | { |
| | | string sJson_Main = "{\"Creator\":\"\",\"NeedUpDateFields\":[\"FEntity\",\"FActualQty\"]," + |
| | | string sJson_Main = "{\"Creator\":\"\",\"NeedUpDateFields\":[\"FEntity\",\"F_SMRKS\"]," + |
| | | "\"NeedReturnFields\":[],\"IsDeleteEntry\":\"false\",\"SubSystemId\":\"\",\"IsVerifyBaseDataField\":\"false\"," + |
| | | "\"IsEntryBatchFill\":\"True\",\"ValidateFlag\":\"True\",\"NumberSearch\":\"True\",\"InterationFlags\":\"\"," + |
| | | "\"Model\": { \"FID\":\"" + Pub_Class.ClsPub.isStrNull(Ds2.Tables[0].Rows[0]["FID"]) + "\"," + |
| | |
| | | string HCusType = ""; |
| | | DateTime HEndDate = DateTime.Now; |
| | | string HWorkLineName = ""; |
| | | string sDate = DateTime.ParseExact(str[4], "yyyyMMdd", CultureInfo.InvariantCulture).ToString("yyyy-MM-dd"); |
| | | string sDate = DateTime.ParseExact(PadDateTime(str[4], 3).Replace("-","").Replace("-", ""), "yyyyMMdd", CultureInfo.InvariantCulture).ToString("yyyy-MM-dd"); |
| | | |
| | | int HOrgID = HOrgIDs; |
| | | string HSeOrderBillNo = ""; |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 日期补零 |
| | | |
| | | public static string PadDateTime(string dateStr, int mode) |
| | | { |
| | | if (DateTime.TryParse(dateStr, out DateTime dt)) |
| | | { |
| | | string result = ""; |
| | | if (mode == 1 || mode == 3) |
| | | { |
| | | result += dt.Year.ToString("D4") + "-" + dt.Month.ToString("D2") + "-" + dt.Day.ToString("D2"); |
| | | } |
| | | //if (mode == 3) result += " "; |
| | | //if (mode == 2 || mode == 3) |
| | | //{ |
| | | // result += dt.Hour.ToString("D2") + ":" + dt.Minute.ToString("D2") + ":" + dt.Second.ToString("D2"); |
| | | //} |
| | | return result; |
| | | } |
| | | return dateStr; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |