/// <summary> /// 保存界面数据 /// </summary> /// <returns></returns> private bool Save() { GridRela.FinishEditing(); DataTable dtSave = GridRela.DataSource as DataTable; ReturnObject roSave = UIP.FrameManager.ServerCall("DJstuff.Server.dll#DJstuff.Server.BO_Stuff#SaveTypeRela", dtSave); if (roSave.ErrorMessage == null) { UIP.FrameManager.SetStatusMessage("保存成功!", true, Color.DarkGreen); return(true); } else { UIP.FrameManager.SetStatusMessage(roSave.ErrorMessage.Message, true, Color.Red); return(false); } }
/// <summary> /// 设置表格样式 /// </summary> private void SetGridStyle() { GridRela.Cols["sdoc_type_code"].Caption = "凭证类型编码"; GridRela.Cols["sdoc_type_name"].Caption = "凭证类型名称"; GridRela.Cols["sdoc_yy_code"].Caption = "用友凭证类型"; GridRela.Cols["space"].Caption = ""; GridRela.Cols["sdoc_type_code"].AllowEditing = false; GridRela.Cols["sdoc_type_name"].AllowEditing = false; GridRela.Cols["sdoc_yy_code"].AllowEditing = true; GridRela.Cols["space"].AllowEditing = false; GridRela.AutoSizeCols(); GridRela.ExtendLastCol = true; //行号、行高 GridRela.Rows[0].Height = 25; for (int i = GridRela.Rows.Fixed; i < GridRela.Rows.Count; i++) { GridRela.Rows[i].Height = 25; GridRela.Rows[i][0] = i - GridRela.Rows.Fixed + 1; } }