/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //if(style != JobStyle.INSERT) //{ // if(this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) // { // Basic.ShowMessage(3,"선택된 데이터가 없습니다."); // return false; // } // else //선택된 데이터가 있다면 // { // //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. // if(style == JobStyle.DELETE) // { // return true; // } // } //} bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style, string chk) { bool bReturn = false; if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (this.txtGiftProd.Text.Trim().Length <= 0) { Basic.ShowMessage(2, lblGiftProd.Text + "을 선택하세요"); this.txtGiftProd.Focus(); return(false); } if (this.txtUnitAmt.Text.ToString().Trim().Length <= 0) { Basic.ShowMessage(2, lblUnitAmt.Text + "을 입력하세요"); this.txtUnitAmt.Focus(); return(false); } if (this.txtNetAmt.Text.ToString().Trim().Length <= 0) { Basic.ShowMessage(2, lblNetAmt.Text + "을 입력하세요"); this.txtNetAmt.Focus(); return(false); } if (this.txtVatAmt.Text.ToString().Trim().Length <= 0) { Basic.ShowMessage(2, lblVatAmt.Text + "를 입력하세요"); this.txtVatAmt.Focus(); return(false); } if (Int32.Parse(this.txtGiftQty.Text.ToString().Trim().Replace(",", "")) < 1) { Basic.ShowMessage(2, lblGiftQty.Text + "를 입력하세요"); this.txtGiftQty.Focus(); return(false); } bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /************************************************************************************** * //update// delete 시 데이터가 선택되었는지를 확인한다. * if(style != JobStyle.INSERT) * { * if(this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) * { * Basic.ShowMessage(3,"선택된 데이터가 없습니다."); * return false; * } * else //선택된 데이터가 있다면 * { * //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. * if(style == JobStyle.DELETE) * { * return true; * } * } * } *******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridViewCancel.FocusedRowHandle < 0 || this.gridViewCancel.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else { if (style == JobStyle.DELETE) { return(true); } } } if (mmoRmrk.Text.ToString().Trim() == "") { Basic.ShowMessage(2, dockPanel3.Text + "을 입력하세요"); mmoRmrk.Focus(); return(false); } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } } if (this.txtMemberNo.Text == "") { Basic.ShowMessage(2, lblMemberNo.Text + "를 입력하세요"); txtMemberNo.Focus(); return(false); } if (this.lupRegwaycode.EditValue.ToString() == "") { Basic.ShowMessage(2, lblRegwaycode.Text + "을 선택하세요"); lupRegwaycode.Focus(); return(false); } if (this.lupRegreasoncode.EditValue.ToString() == "") { Basic.ShowMessage(2, lblRegreasoncode.Text + "를 선택하세요"); lupRegreasoncode.Focus(); return(false); } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "상위 목록에 선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { if (this.DetailgridView.FocusedRowHandle < 0 || this.DetailgridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } } } bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridViewM.FocusedRowHandle < 0 || this.gridViewM.RowCount <= 0) { Basic.ShowMessage(3, "상위 목록에 선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { if (this.gridViewL.FocusedRowHandle < 0 || this.gridViewL.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } } } if (Convert.ToInt32(txtLimitCnt.EditValue.ToString().Trim()) < 0 || txtLimitCnt.EditValue.ToString().Trim().Length > 4) { Basic.ShowMessage(2, lblLimitCnt.Text + "(최소값:0,최대값:9999)을 입력하세요"); txtLimitCnt.Focus(); return(false); } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; if (this.txtCallNo.Text == "") { Basic.ShowMessage(2, this.lblCallNo.Text + "(은)는 필수입력입니다."); txtCallNo.Focus(); return(false); } //if (!IsValidateTel(this.txtCallNo.Text)) //{ // Basic.ShowMessage(2, this.lblCallNo.Text + " 형식이 바르지 않습니다."); // txtCallNo.Focus(); // return false; //} //if (this.dtpSMSSendDate.Text == "") //{ // Basic.ShowMessage(2, "SMS예약일자는 필수입력입니다."); // this.dtpSMSSendDate.Focus(); // return false; //} if (style == JobStyle.INSERT) { if (this.mmoSMS.Text == "") { Basic.ShowMessage(2, "SMS(입력정보)발송시 문자메세지는 필수입력입니다."); this.mmoSMS.Focus(); return(false); } } for (int nCnt = 0; nCnt < dt.Rows.Count; nCnt++) { if (dt.Rows[nCnt]["CHECK_YN"].ToString() == "Y") { if (dt.Rows[nCnt]["MOBILE_TEL"].ToString() == "") { dt.Rows[nCnt]["CHECK_YN"] = "N"; continue; } if (!IsValidateTel(Basic.MaskReplace(dt.Rows[nCnt]["MOBILE_TEL"].ToString()))) { dt.Rows[nCnt]["CHECK_YN"] = "N"; } } } if (Basic.ShowMessageQuestion("전송 하시겠습니까?") == DialogResult.No) { return(false); } //if (Basic.ShowMessageQuestion("SMS(예약정보)발송 하시겠습니까?") == DialogResult.No) return; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } //수정// 삭제라면 string prodgroupcode = lupProductGroupCode_Insert.EditValue.ToString().Trim(); string salelotcode = lupSaleinlotCnt_Insert.EditValue.ToString().Trim(); string commoditycode = lupCommodityCode_Insert.EditValue.ToString().Trim(); string accountcode = lupAccountCode_Insert.EditValue.ToString().Trim(); if (prodgroupcode == "") { Basic.ShowMessage(1, "상품구분을 입력하세요"); lupProductGroupCode_Insert.Focus(); } else if (salelotcode == "") { Basic.ShowMessage(1, "차수구분을 입력하세요"); lupSaleinlotCnt_Insert.Focus(); } else if (commoditycode == "") { Basic.ShowMessage(1, "평형구분을 입력하세요"); lupCommodityCode_Insert.Focus(); } else if (accountcode == "") { Basic.ShowMessage(1, "구좌구분을 입력하세요"); lupAccountCode_Insert.Focus(); } else { bReturn = true; } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } /*******************************************************************************************/ if (this.txtInsertRoomNo.Text.Trim() == "") { Basic.ShowMessage(1, "객실정보을(를) 입력하세요."); txtInsertRoomNo.Focus(); } else if (lupMaid.Text == "" || lupMaid.EditValue.ToString().Trim() == "") { Basic.ShowMessage(1, "메이드을(를) 선택하세요."); lupMaid.Focus(); } else if (!Cls.Common.uMask.IsRegEx(this.txtStartDate.Text.Trim(), Parm.mMask.TIME)) { Basic.ShowMessage(1, "시작시간이 형식에 맞지 않습니다."); txtStartDate.Focus(); } else if (!Cls.Common.uMask.IsRegEx(this.txtEndDate.Text.Trim(), Parm.mMask.TIME)) { Basic.ShowMessage(1, "종료시간이 형식에 맞지 않습니다."); txtEndDate.Focus(); } else if (lupCleanStat.Text == "" || lupCleanStat.EditValue.ToString().Trim() == "") { Basic.ShowMessage(1, "청소상태을(를) 선택하세요."); lupCleanStat.Focus(); } else { bReturn = true; } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } //if (this.txtMemberNo.Text == "") //{ // Basic.ShowMessage(2, lblMemberNo.Text + "를 입력하세요"); // txtMemberNo.Focus(); // return false; //} //if (this.lupRegwaycode.EditValue.ToString() == "") //{ // Basic.ShowMessage(2, lblRegwaycode.Text + "을 선택하세요"); // lupRegwaycode.Focus(); // return false; //} //if (this.lupRegreasoncode.EditValue.ToString() == "") //{ // Basic.ShowMessage(2, lblRegreasoncode.Text + "를 선택하세요"); // lupRegreasoncode.Focus(); // return false; //} //if (this.txtlIssuefee.Text == "") //{ // Basic.ShowMessage(2, lblIssuefee.Text + "를 입력하세요"); // txtlIssuefee.Focus(); // return false; //} //else //{ // bReturn = true; //} bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (this.txtMemberNo.Text == "") { Basic.ShowMessage(2, lblMemberNo.Text + "를 입력하세요"); txtMemberNo.Focus(); return(false); } if (this.lupRegwaycode.EditValue.ToString().Trim() == "") { Basic.ShowMessage(2, lblRegwaycode.Text + "을 선택하세요"); lupRegwaycode.Focus(); return(false); } if (this.lupRegreasoncode.EditValue.ToString().Trim() == "") { Basic.ShowMessage(2, lblRegreasoncode.Text + "를 선택하세요"); lupRegreasoncode.Focus(); return(false); } if (this.lupAmtWayCode.EditValue.ToString().Trim() != "" && Basic.MaskReplace(datAmtDate.Text.ToString().Trim()) == "") { Basic.ShowMessage(2, lblAmtDate.Text + "를 입력하세요"); datAmtDate.Focus(); return(false); } if (this.lupAmtWayCode.EditValue.ToString().Trim() != "" && txtlIssuefee.Text.ToString().Trim() == "") { Basic.ShowMessage(2, lblIssuefee.Text + "를 입력하세요"); txtlIssuefee.Focus(); return(false); } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (this.popFacilitycode.Text == "선택하세요") { Basic.ShowMessage(1, "영업장을 선택하세요"); this.popFacilitycode.Focus(); } else if (this.txtPosno.Text.Trim() == "") { Basic.ShowMessage(1, "포스번호를 입력"); this.txtPosno.Focus(); } else if (!Num.IsNumeric(this.txtPosno.Text.Trim())) { Basic.ShowMessage(1, "포스번호는 숫자로 입력 해야합니다."); this.txtPosno.Focus(); } else if (this.txtPosip.Text.Trim() == "") { Basic.ShowMessage(1, "포스아이피를 입력하세요."); this.txtPosip.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { try { bool bReturn = true; if (style != JobStyle.INSERT) { //새미나실 if (txteventroom.Text.ToString().Trim() == "") { Basic.ShowMessage(2, "세미나실을 입력 하세요!"); txteventroom.Focus(); return(false); } //시작일을 if (txtsttime.Text.ToString().Trim() == "") { Basic.ShowMessage(2, "시작일을 입력 하세요!"); txtsttime.Focus(); return(false); } //종료일 if (txtendtime.Text.ToString().Trim() == "") { Basic.ShowMessage(2, "세미나실을 입력 하세요!"); txtendtime.Focus(); return(false); } //종료일 if (txteventnm.Text.ToString().Trim() == "") { Basic.ShowMessage(2, "단체 회원명을입력하세요!"); txteventnm.Focus(); return(false); } //종료일 if (txtpwd.Text.ToString().Trim() == "") { Basic.ShowMessage(2, "비밀번호를 입력하세요!"); txtpwd.Focus(); return(false); } } return(bReturn); } catch (Exception ex) { throw ex; } }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (this.popFacilitycode.Text == "선택하세요") { Basic.ShowMessage(1, "영업장을 선택하세요"); popFacilitycode.Focus(); } else if (this.lup_Divisioncode.EditValue.ToString().Trim() == "") { Basic.ShowMessage(1, "항목구분을 선택하세요"); this.lupDivisioncode.Focus(); } else if (this.txtPlandate.Text.Trim() == "") { Basic.ShowMessage(2, "계획년월을 등록하세요."); this.txtPlandate.Focus(); } else if (this.txtPlandate.Text.Trim() != "" && !System.Text.RegularExpressions.Regex.IsMatch(txtPlandate.Text.Trim(), @"(9[9]|1[9]|2[0-9])\d\d-(0[1-9]|1[012])")) { Basic.ShowMessage(2, "[YYYY-MM-DD] 일자가 형식에 맞지 않습니다."); this.txtPlandate.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; DataRow[] r = dt.Select("CHECK_YN = 'Y'"); if (r.Length <= 0) { Basic.ShowMessage(2, "선택된 건이 없습니다"); return(bReturn); } return(bReturn = true); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; if (style == JobStyle.INSERT) { if (((DataTable)this.grid.DataSource).Select("CHECK_YN = 'Y'").Length <= 0) { Basic.ShowMessage(1, "선택된 데이터가 없습니다."); grid.Focus(); return(false); } } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } /*******************************************************************************************/ if (txtGuestid.Text.Trim() == "") { Basic.ShowMessage(1, "아이디를 입력하세요"); txtGuestid.Focus(); } else if (txtGuestname.Text.Trim() == "") { Basic.ShowMessage(1, "이름을 입력하세요"); txtGuestname.Focus(); } else if (lupNationalcode.Text == "" || lupNationalcode.EditValue.ToString().Trim() == "") { Basic.ShowMessage(1, string.Format("{0}을(를) 선택하세요.", lblNationalcode.Text.Trim())); lupNationalcode.Focus(); } else { bReturn = true; } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridViewAmt.FocusedRowHandle < 0 || this.gridViewAmt.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (datReturnDate.EditValue.ToString().Trim() == "") { Basic.ShowMessage(2, string.Format("{0}을(를) 입력하세요.", lblReturnDate.Text)); datReturnDate.Focus(); return(false); } if (lupBankCode.EditValue.ToString().Trim() == "") { Basic.ShowMessage(2, string.Format("{0}을(를) 선택하세요.", lblBankCode.Text)); lupBankCode.Focus(); return(false); } if (txtBankNo.Text.ToString().Trim() == "") { Basic.ShowMessage(2, string.Format("{0}을(를) 선택하세요.", lblBankNo.Text)); txtBankNo.Focus(); return(false); } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridViewFacility.FocusedRowHandle < 0 || this.gridViewFacility.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } string facility = this.lupFacilitycode.EditValue.ToString().Trim(); string taskdate = Basic.MaskReplace(this.txtTaskdate.Text.Trim()); if (facility == "" || this.lupFacilitycode.Text == "") { Basic.ShowMessage(1, "영업장을 선택하세요"); this.lupFacilitycode.Focus(); } else if (taskdate == "" || !System.Text.RegularExpressions.Regex.IsMatch(txtTaskdate.Text.Trim(), @"(1[9]|2[0-9])\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])")) { Basic.ShowMessage(2, "[YYYY-MM-DD] 영업일자가 형식에 맞지 않습니다."); this.txtTaskdate.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridViewFacility.FocusedRowHandle < 0 || this.gridViewFacility.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } string facility = this.lupFacilitycode.EditValue.ToString().Trim(); string paycode = this.lupPaycode.EditValue.ToString().Trim(); string displayseq = this.txtDisplayseq.Text.Trim().Replace(",", ""); if (facility == "" || this.lupFacilitycode.Text == "") { Basic.ShowMessage(1, "영업장을 선택하세요"); this.lupFacilitycode.Focus(); } else if (paycode == "" || this.lupPaycode.Text == "") { Basic.ShowMessage(1, "결제수단을 선택하세요"); this.lupPaycode.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(1, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } if (this.popFacilitycode.Text == "선택하세요") { Basic.ShowMessage(1, "영업장을 선택하세요"); popFacilitycode.Focus(); } else if (this.lupDivisioncode.EditValue.ToString().Trim() == "" || this.lupDivisioncode.Text.Trim() == "") { Basic.ShowMessage(1, "항목구분코드를 선택하세요"); lupDivisioncode.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { try { bool bReturn = true; if (style == JobStyle.UPDATE) { if (this.gridViewDeposit.FocusedRowHandle < 0 || this.gridViewDeposit.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } } //입금일자 if (Basic.MaskReplace(dtpAmtDate.Text.ToString().Trim()).Length != 8) { Basic.ShowMessage(2, lblAmtDate.Text + "을 입력하세요.."); dtpAmtDate.Focus(); return(false); } //입금자명 if (txtAmtName.Text.ToString().Trim() == "") { Basic.ShowMessage(2, lblAmtName.Text + "을 입력하세요.."); txtAmtName.Focus(); return(false); } //예약금 if (Convert.ToInt32(txtRsvAmt.EditValue.ToString().Trim()) < 1 || txtRsvAmt.EditValue.ToString().Trim() == "") { Basic.ShowMessage(2, lblRsvAmt.Text + "을 입력하세요.."); txtRsvAmt.Focus(); return(false); } return(bReturn); } catch (Exception ex) { throw ex; } }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if(style != JobStyle.INSERT) { if(this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3,"선택된 데이터가 없습니다."); return false; } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if(style == JobStyle.DELETE) { return true; } } } if(txtMaidname.Text.Trim() == "") { Basic.ShowMessage(1, "메이드 이름을 입력하세요"); txtMaidname.Focus(); } else if(lupMaidcode.EditValue.ToString().Trim() == "" || lupMaidcode.Text.Trim() == "") { Basic.ShowMessage(1, "메이드 구분을 입력하세요"); lupMaidcode.Focus(); } else { bReturn = true; } /*******************************************************************************************/ return bReturn; }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } if (style == JobStyle.UPDATE) { return(true); } } } if (style == JobStyle.INSERT) { //if (this.lupMenuitem1.EditValue.ToString().Trim() == "") //{ // Basic.ShowMessage(3, "시즌구분을 선택하세요."); // this.lupMenuitem1.Focus(); // return false; //} } bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //주석을 풀고 사용하세요 /**************************************************************************************/ //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { return(true); } } } /*******************************************************************************************/ if (this.popFacilitycode.Text == "선택하세요") { Basic.ShowMessage(1, "영업장을 선택하세요"); this.popFacilitycode.Focus(); } else if (this.txtMenugroupname.Text.Trim() == "") { Basic.ShowMessage(1, "메뉴분류명을 입력하세요"); this.txtMenugroupname.Focus(); } else { bReturn = true; } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = false; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style != JobStyle.INSERT) { if (this.gridView.FocusedRowHandle < 0 || this.gridView.RowCount <= 0) { Basic.ShowMessage(3, "선택된 데이터가 없습니다."); return(false); } else //선택된 데이터가 있다면 { //그리고.. 삭제라면.. // 삭제일경우 데이터만 선택되어 있으면 삭제할 수 있다. if (style == JobStyle.DELETE) { int iRow = this.gridView.GetDataSourceRowIndex(this.gridView.FocusedRowHandle); string FacilityCode = dt.Rows[iRow]["FACILITY_CODE"].ToString().Trim(); if (FacilityCode != this.lupFacilitycodeSelect.EditValue.ToString().Trim()) { Basic.ShowMessage(3, "영업장코드를 확인하세요."); this.lupFacilitycodeSelect.Focus(); return(false); } return(true); } if (style == JobStyle.UPDATE) { return(true); } } } bReturn = true; return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { bool bReturn = true; //update// delete 시 데이터가 선택되었는지를 확인한다. if (style == JobStyle.INSERT) { if (dt.Rows.Count <= 0) { Basic.ShowMessage(3, "조회된 데이터가 없습니다"); return(false); } if (((DataTable)this.grid.DataSource).Select("RSV_YN = 'Y'").Length <= 0) { Basic.ShowMessage(2, "선택된 데이터가 없습니다."); return(false); } } return(bReturn); }
/// <summary> /// 데이터의 유효성을 검사합니다. /// </summary> /// <param name="style">작업스타일.</param> /// <returns>유효성검사결과</returns> private bool ISCheckData(JobStyle style) { switch (style) { case JobStyle.FOCASTING: if (this.txtLotno.Text.Trim() == "") { Basic.ShowMessage(2, this.lblLotno.Text + "를 선택하세요."); this.picLotno.Focus(); return(false); } break; case JobStyle.INSERT: if (this.dt.Rows.Count < 1) { Basic.ShowMessage(2, "등록된 포캐스팅건이 없습니다."); return(false); } if (this.gridView.FocusedRowHandle < 0) { Basic.ShowMessage(2, "저장할 포캐스팅건을 선택하세요."); return(false); } break; case JobStyle.INSERTALL: if (this.dt.Rows.Count < 1) { Basic.ShowMessage(2, "등록된 포캐스팅건이 없습니다."); return(false); } break; } return(true); }