Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region C表
- if (StringUtils.SafeCompareStrings(sTableName, base.Tables[2].TableName, true))
- {
- ILibGridControl gridControl = base.FormInstance.GetGridControl(this.Tables[1].TableName);
- if (gridControl != null)
- {
- DataRow focusedRow = gridControl.FocusedRow;
- if (focusedRow != null)
- {
- Int64 parentRowCode = LibSysUtils.ToInt64(focusedRow["RowCode"]);
- DataTable rowDetail = new DataView(base.Tables[2])
- {
- RowFilter = string.Format("ParentRowCode={0}", parentRowCode)
- }.ToTable();
- if (rowDetail.Rows.Count >= 1)
- {
- AddMsg(LibMessageKind.Error, "分期資料僅允許登打一列!");
- }
- }
- }
- }
- #endregion C表
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement