private void InsertData(object sender, EventArgs e) { if (ScheduleFix) { if ("".Equals(cboUser.ValueList)) { ViewMessage.Info("담당자와 내용을 선택해 주시기 바랍니다."); } else { ClearSearchData(); SetSearchData("DOC_ID", DOC_ID); SetSearchData("ACCEPT_TM", DATE.ToString("yyyy-MM-dd HH:mm:ss")); SetSearchData("PROC_TM", dtCreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss")); SetSearchData("USER_ID_LST", cboUser.ValueList); SetSearchData("CRT_USER_ID", DTOFactory.UserId); SetServiceId("SetScheduleManager"); DTOFactory.Transaction(new ReportDTO()); ViewMessage.Info("일정 수정을 완료 하였습니다."); DialogResult = DialogResult.OK; Close(); } } else { if ("".Equals(cboUser.ValueList) || "".Equals(cboPlan.ValueList)) { ViewMessage.Info("담당자와 내용을 선택해 주시기 바랍니다."); } else { ClearSearchData(); SetSearchData("DOC_ID", DOC_ID); SetSearchData("ACCEPT_TM", dtCreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss")); SetSearchData("USER_ID_LST", cboUser.ValueList); SetSearchData("DESC", cboPlan.ValueList); SetSearchData("CRT_USER_ID", DTOFactory.UserId); SetServiceId("SetScheduleManager"); DTOFactory.Transaction(new ReportDTO()); ViewMessage.Info("일정 등록을 완료 하였습니다."); DialogResult = DialogResult.OK; Close(); } } }
public void GetPropertyError(string propertyName, ErrorInfo info) { //throw new NotImplementedException(); if (propertyName == "DATE") { if (string.IsNullOrWhiteSpace(DATE.ToString())) { info.ErrorText = string.Format("The {0} field cannot be empty", propertyName); } else if (!FrmImport.IsDateTime(DATE.ToString())) { info.ErrorText = "Invalid Date"; } else if (!FrmImport.CheckDateRange(startDate, endtDate, Convert.ToDateTime(DATE))) { info.ErrorText = "Date not within the specified date range"; } } if (propertyName == "CREDIT") { if (!FrmImport.IsNumeric(CREDIT)) { info.ErrorText = "Credit is not in the right format"; } else if (CREDIT < 0) { info.ErrorText = "Credit is negative "; } } //if (propertyName == "DEBIT") //{ // info.ErrorText = "Debit is not in the right format"; //} //if (propertyName == "BALANCE") //{ // info.ErrorText = "Balance is not in the right format"; //} }
public override string ToString() { StringBuilder __sb = new StringBuilder("LogicalType("); bool __first = true; if (STRING != null && __isset.@STRING) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("STRING: "); __sb.Append(STRING == null ? "<null>" : STRING.ToString()); } if (MAP != null && __isset.MAP) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("MAP: "); __sb.Append(MAP == null ? "<null>" : MAP.ToString()); } if (LIST != null && __isset.LIST) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("LIST: "); __sb.Append(LIST == null ? "<null>" : LIST.ToString()); } if (ENUM != null && __isset.@ENUM) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ENUM: "); __sb.Append(ENUM == null ? "<null>" : ENUM.ToString()); } if (DECIMAL != null && __isset.@DECIMAL) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DECIMAL: "); __sb.Append(DECIMAL == null ? "<null>" : DECIMAL.ToString()); } if (DATE != null && __isset.DATE) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DATE: "); __sb.Append(DATE == null ? "<null>" : DATE.ToString()); } if (TIME != null && __isset.TIME) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("TIME: "); __sb.Append(TIME == null ? "<null>" : TIME.ToString()); } if (TIMESTAMP != null && __isset.TIMESTAMP) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("TIMESTAMP: "); __sb.Append(TIMESTAMP == null ? "<null>" : TIMESTAMP.ToString()); } if (INTEGER != null && __isset.INTEGER) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("INTEGER: "); __sb.Append(INTEGER == null ? "<null>" : INTEGER.ToString()); } if (UNKNOWN != null && __isset.UNKNOWN) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UNKNOWN: "); __sb.Append(UNKNOWN == null ? "<null>" : UNKNOWN.ToString()); } if (JSON != null && __isset.JSON) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("JSON: "); __sb.Append(JSON == null ? "<null>" : JSON.ToString()); } if (BSON != null && __isset.BSON) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("BSON: "); __sb.Append(BSON == null ? "<null>" : BSON.ToString()); } if (UUID != null && __isset.UUID) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UUID: "); __sb.Append(UUID == null ? "<null>" : UUID.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public string OutString(Doct_shedule ds) { return(ds.DCODE + ";" + ds.CHAIR + ";" + DATE.ToString("yyyy-MM-dd HH:mm:ss.fff") + ";" + ST_HOUR + ";" + ST_MIN + ";" + END_HOUR + ";" + END_MIN + ";" + INTERVAL + ";" + ds.FILID); }