已重命名6个文件
已修改46个文件
已添加4个文件
| | |
| | | using Yw.BLL; |
| | | |
| | | namespace PBS.BLL |
| | | { |
| | | /// <summary> |
| | | /// åºæ |
| | | ///</summary> |
| | | ///</summary> |
| | | public partial class Place |
| | | { |
| | | |
| | | private readonly PBS.CAL.IPlace _cal = CALCreateHelper.CreateCAL<PBS.CAL.IPlace>(); |
| | | |
| | | #region Query |
| | |
| | | /// <summary> |
| | | /// è·åææ |
| | | /// </summary> |
| | | public async virtual Task<List<PBS.Vmo.PlaceVmo>> GetAll() |
| | | public virtual async Task<List<PBS.Vmo.PlaceVmo>> GetAll() |
| | | { |
| | | var dtoList = await _cal.GetAll(); |
| | | return Dto2Vmos(dtoList); |
| | |
| | | /// <summary> |
| | | /// éè¿ ID è·å |
| | | /// </summary> |
| | | public async virtual Task<PBS.Vmo.PlaceVmo> GetByID(long ID) |
| | | public virtual async Task<PBS.Vmo.PlaceVmo> GetByID(long ID) |
| | | { |
| | | var dto = await _cal.GetByID(ID); |
| | | return Dto2Vmo(dto); |
| | |
| | | /// <summary> |
| | | /// éè¿ Ids è·å |
| | | /// </summary> |
| | | public async virtual Task<List<PBS.Vmo.PlaceVmo>> GetByIds(List<long> Ids) |
| | | public virtual async Task<List<PBS.Vmo.PlaceVmo>> GetByIds(List<long> Ids) |
| | | { |
| | | var dtoList = await _cal.GetByIds(Ids); |
| | | return Dto2Vmos(dtoList); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Query |
| | | |
| | | #region Insert |
| | | |
| | | /// <summary> |
| | | /// æå
¥ä¸æ¡ |
| | | /// </summary> |
| | | public async virtual Task<long> Insert(PBS.Vmo.PlaceVmo vmo) |
| | | public virtual async Task<long> Insert(PBS.Vmo.PlaceVmo vmo) |
| | | { |
| | | var dto = Vmo2AddDto(vmo); |
| | | var id = await _cal.Insert(dto); |
| | |
| | | /// <summary> |
| | | /// æå
¥å¤æ¡ |
| | | /// </summary> |
| | | public async virtual Task<bool> Inserts(List<PBS.Vmo.PlaceVmo> vmoList) |
| | | public virtual async Task<bool> Inserts(List<PBS.Vmo.PlaceVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2AddDtos(vmoList); |
| | | var bol = await _cal.Inserts(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Insert |
| | | |
| | | #region Update |
| | | |
| | | /// <summary> |
| | | /// æ´æ° |
| | | /// </summary> |
| | | public async virtual Task<bool> Update(PBS.Vmo.PlaceVmo vmo) |
| | | public virtual async Task<bool> Update(PBS.Vmo.PlaceVmo vmo) |
| | | { |
| | | var dto = Vmo2UpdateDto(vmo); |
| | | var bol = await _cal.Update(dto); |
| | |
| | | /// <summary> |
| | | /// æ¹éæ´æ° |
| | | /// </summary> |
| | | public async virtual Task<bool> Updates(List<PBS.Vmo.PlaceVmo> vmoList) |
| | | public virtual async Task<bool> Updates(List<PBS.Vmo.PlaceVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2UpdateDtos(vmoList); |
| | | var bol = await _cal.Updates(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æåºç |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateSortCode(long ID, int SortCode) |
| | | public virtual async Task<bool> UpdateSortCode(long ID, int SortCode) |
| | | { |
| | | var bol = await _cal.UpdateSortCode(ID, SortCode); |
| | | return bol; |
| | |
| | | /// <summary> |
| | | /// æ¹éæ´æ°æåºç |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) |
| | | public virtual async Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) |
| | | { |
| | | var dtoList = Sorters.ToDtoList(); |
| | | var bol = await _cal.UpdateSorter(dtoList); |
| | |
| | | /// <summary> |
| | | /// æ´æ° Flags |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateFlags(long ID, List<string> Flags) |
| | | public virtual async Task<bool> UpdateFlags(long ID, List<string> Flags) |
| | | { |
| | | return await _cal.UpdateFlags(ID, Flags); |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° Paras |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras) |
| | | public virtual async Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras) |
| | | { |
| | | return await _cal.UpdateParas(ID, Paras); |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° TagName |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateTagName(long ID, string TagName) |
| | | public virtual async Task<bool> UpdateTagName(long ID, string TagName) |
| | | { |
| | | return await _cal.UpdateTagName(ID, TagName); |
| | | } |
| | | |
| | | #endregion |
| | | /// <summary> |
| | | /// æ´æ° UpdateUseStatus |
| | | /// </summary> |
| | | public virtual async Task<bool> UpdateUseStatus(long ID, Yw.Model.eUseStatus useStatus) |
| | | { |
| | | return await _cal.UpdateUseStatus(ID, (int)useStatus); |
| | | } |
| | | |
| | | #endregion Update |
| | | |
| | | #region Exist |
| | | |
| | | /// <summary> |
| | | /// 夿 TagName æ¯å¦åå¨ |
| | | /// </summary> |
| | | public async virtual Task<bool> IsExistTagName(string TagName) |
| | | public virtual async Task<bool> IsExistTagName(string TagName) |
| | | { |
| | | return await _cal.IsExistTagName(TagName); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 夿 TagName æ¯å¦åå¨ ExceptID |
| | | /// </summary> |
| | | public async virtual Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID) |
| | | public virtual async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID) |
| | | { |
| | | return await _cal.IsExistTagNameExceptID(TagName, ExceptID); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Exist |
| | | |
| | | #region Delete |
| | | #region Delete |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID å é¤ |
| | | /// </summary> |
| | | public async virtual Task<bool> DeleteByID(long ID) |
| | | public virtual async Task<bool> DeleteByID(long ID) |
| | | { |
| | | var bol = await _cal.DeleteByID(ID); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #endregion Delete |
| | | } |
| | | } |
| | |
| | | { |
| | | /// <summary> |
| | | /// è®¾æ½ |
| | | ///</summary> |
| | | ///</summary> |
| | | public partial class Facility |
| | | { |
| | | |
| | | private readonly PBS.CAL.IFacility _cal = CALCreateHelper.CreateCAL<PBS.CAL.IFacility>(); |
| | | |
| | | #region Query |
| | |
| | | /// <summary> |
| | | /// è·åææ |
| | | /// </summary> |
| | | public async virtual Task<List<PBS.Vmo.FacilityVmo>> GetAll() |
| | | public virtual async Task<List<PBS.Vmo.FacilityVmo>> GetAll() |
| | | { |
| | | var dtoList = await _cal.GetAll(); |
| | | return Dto2Vmos(dtoList); |
| | |
| | | /// <summary> |
| | | /// éè¿ ID è·å |
| | | /// </summary> |
| | | public async virtual Task<PBS.Vmo.FacilityVmo> GetByID(long ID) |
| | | public virtual async Task<PBS.Vmo.FacilityVmo> GetByID(long ID) |
| | | { |
| | | var dto = await _cal.GetByID(ID); |
| | | return Dto2Vmo(dto); |
| | |
| | | /// <summary> |
| | | /// éè¿ Ids è·å |
| | | /// </summary> |
| | | public async virtual Task<List<PBS.Vmo.FacilityVmo>> GetByIds(List<long> Ids) |
| | | public virtual async Task<List<PBS.Vmo.FacilityVmo>> GetByIds(List<long> Ids) |
| | | { |
| | | var dtoList = await _cal.GetByIds(Ids); |
| | | return Dto2Vmos(dtoList); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Query |
| | | |
| | | #region Insert |
| | | |
| | | /// <summary> |
| | | /// æå
¥ä¸æ¡ |
| | | /// </summary> |
| | | public async virtual Task<long> Insert(PBS.Vmo.FacilityVmo vmo) |
| | | public virtual async Task<long> Insert(PBS.Vmo.FacilityVmo vmo) |
| | | { |
| | | var dto = Vmo2AddDto(vmo); |
| | | var id = await _cal.Insert(dto); |
| | |
| | | /// <summary> |
| | | /// æå
¥å¤æ¡ |
| | | /// </summary> |
| | | public async virtual Task<bool> Inserts(List<PBS.Vmo.FacilityVmo> vmoList) |
| | | public virtual async Task<bool> Inserts(List<PBS.Vmo.FacilityVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2AddDtos(vmoList); |
| | | var bol = await _cal.Inserts(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Insert |
| | | |
| | | #region Update |
| | | |
| | | /// <summary> |
| | | /// æ´æ° |
| | | /// </summary> |
| | | public async virtual Task<bool> Update(PBS.Vmo.FacilityVmo vmo) |
| | | public virtual async Task<bool> Update(PBS.Vmo.FacilityVmo vmo) |
| | | { |
| | | var dto = Vmo2UpdateDto(vmo); |
| | | var bol = await _cal.Update(dto); |
| | |
| | | /// <summary> |
| | | /// æ¹éæ´æ° |
| | | /// </summary> |
| | | public async virtual Task<bool> Updates(List<PBS.Vmo.FacilityVmo> vmoList) |
| | | public virtual async Task<bool> Updates(List<PBS.Vmo.FacilityVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2UpdateDtos(vmoList); |
| | | var bol = await _cal.Updates(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æåºç |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateSortCode(long ID, int SortCode) |
| | | public virtual async Task<bool> UpdateSortCode(long ID, int SortCode) |
| | | { |
| | | var bol = await _cal.UpdateSortCode(ID, SortCode); |
| | | return bol; |
| | |
| | | /// <summary> |
| | | /// æ¹éæ´æ°æåºç |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) |
| | | public virtual async Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) |
| | | { |
| | | var dtoList = Sorters.ToDtoList(); |
| | | var bol = await _cal.UpdateSorter(dtoList); |
| | |
| | | /// <summary> |
| | | /// æ´æ° Flags |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateFlags(long ID, List<string> Flags) |
| | | public virtual async Task<bool> UpdateFlags(long ID, List<string> Flags) |
| | | { |
| | | return await _cal.UpdateFlags(ID, Flags); |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° Paras |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras) |
| | | public virtual async Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras) |
| | | { |
| | | return await _cal.UpdateParas(ID, Paras); |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° TagName |
| | | /// </summary> |
| | | public async virtual Task<bool> UpdateTagName(long ID, string TagName) |
| | | public virtual async Task<bool> UpdateTagName(long ID, string TagName) |
| | | { |
| | | return await _cal.UpdateTagName(ID, TagName); |
| | | } |
| | | |
| | | #endregion |
| | | /// <summary> |
| | | /// æ´æ° UpdateUseStatus |
| | | /// </summary> |
| | | public virtual async Task<bool> UpdateUseStatus(long ID, Yw.Model.eUseStatus useStatus) |
| | | { |
| | | return await _cal.UpdateUseStatus(ID, (int)useStatus); |
| | | } |
| | | |
| | | #endregion Update |
| | | |
| | | #region Exist |
| | | |
| | | /// <summary> |
| | | /// 夿 TagName æ¯å¦åå¨ |
| | | /// </summary> |
| | | public async virtual Task<bool> IsExistTagName(string TagName) |
| | | public virtual async Task<bool> IsExistTagName(string TagName) |
| | | { |
| | | return await _cal.IsExistTagName(TagName); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 夿 TagName æ¯å¦åå¨ ExceptID |
| | | /// </summary> |
| | | public async virtual Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID) |
| | | public virtual async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID) |
| | | { |
| | | return await _cal.IsExistTagNameExceptID(TagName, ExceptID); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Exist |
| | | |
| | | #region Delete |
| | | #region Delete |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID å é¤ |
| | | /// </summary> |
| | | public async virtual Task<bool> DeleteByID(long ID) |
| | | public virtual async Task<bool> DeleteByID(long ID) |
| | | { |
| | | var bol = await _cal.DeleteByID(ID); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #endregion Delete |
| | | } |
| | | } |
| | |
| | | CreatePage(page,guid); |
| | | } |
| | | }), |
| | | Get("åå管ç",new PageGuid() |
| | | { |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "ManufacturerMgr", |
| | | }, svgImgItem32[12], new Size(18, 18), (caption,guid,svg,size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page=new AssetsManufacturerMainPage(); |
| | | page.PageGuid = guid; |
| | | page.PageTitle.Caption = caption; |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | CreatePage(page,guid); |
| | | } |
| | | }), |
| | | |
| | | } |
| | | }; |
| | | |
| | |
| | | this.Address = rhs.Address; |
| | | this.Flags = rhs.Flags; |
| | | this.TagName = rhs.TagName; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | } |
| | |
| | | this.Address = rhs.Address; |
| | | this.Flags = rhs.Flags; |
| | | this.TagName = rhs.TagName; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | } |
| | |
| | | /// </summary> |
| | | [SysType("assets_manufacturer")] |
| | | [SugarTable("assets_manufacturer")] |
| | | public class AssetsManufacturer : BaseEntity, IFlags, ITagName, ISorter, System.ICloneable |
| | | public class AssetsManufacturer : BaseEntity, IFlags, ITagName, ISorter,IUseStatus, System.ICloneable |
| | | { |
| | | public AssetsManufacturer() |
| | | { } |
| | |
| | | /// æ ç¾åç§° |
| | | /// </summary> |
| | | public string TagName { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æåºç |
| | | /// </summary> |
| | |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 使ç¨ç¶æ |
| | | /// </summary> |
| | | public int UseStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public AssetsManufacturer Clone() |
| | |
| | | /// åå |
| | | /// </summary> |
| | | [SysType("assets_manufacturer")] |
| | | public class AssetsManufacturer : BaseModel, ISorter, ITagName, IFlags, System.ICloneable |
| | | public class AssetsManufacturer : BaseModel, ISorter, ITagName, IFlags, IUseStatus, System.ICloneable |
| | | { |
| | | public AssetsManufacturer() |
| | | { } |
| | |
| | | public string TagName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 使ç¨ç¶æ |
| | | /// </summary> |
| | | public Yw.Model.eUseStatus UseStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåºç |
| | | /// </summary> |
| | | public int SortCode { get; set; } |
| | |
| | | if (entities == null || entities.Count < 1) |
| | | return default; |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsManufacturer, Model.AssetsManufacturer>() |
| | | .ForMember(d => d.Flags, opt => opt.MapFrom(src => FlagsHelper.ToList(src.Flags))) |
| | | .ForMember(d => d.Flags, opt => opt.MapFrom(src => FlagsHelper.ToList(src.Flags))) |
| | | ).CreateMapper(); |
| | | var models = mapper.Map<List<Entity.AssetsManufacturer>, List<Model.AssetsManufacturer>>(entities); |
| | | return models; |
| | |
| | | if (model == null) |
| | | return default; |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsManufacturer, Entity.AssetsManufacturer>() |
| | | ).CreateMapper(); |
| | | .ForMember(d => d.Flags, opt => opt.MapFrom(src => FlagsHelper.ToString(src.Flags))) |
| | | |
| | | ).CreateMapper(); |
| | | var entity = mapper.Map<Model.AssetsManufacturer, Entity.AssetsManufacturer>(model); |
| | | return entity; |
| | | } |
| | |
| | | if (models == null || models.Count < 1) |
| | | return default; |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsManufacturer, Entity.AssetsManufacturer>() |
| | | .ForMember(d => d.Flags, opt => opt.MapFrom(src => FlagsHelper.ToString(src.Flags))) |
| | | ).CreateMapper(); |
| | | var entities = mapper.Map<List<Model.AssetsManufacturer>, List<Entity.AssetsManufacturer>>(models); |
| | | return entities; |
| | |
| | | if (model == null || entity == null) |
| | | return; |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsManufacturer, Entity.AssetsManufacturer>() |
| | | ).CreateMapper(); |
| | | .ForMember(d => d.Flags, opt => opt.MapFrom(src => FlagsHelper.ToString(src.Flags))) |
| | | ).CreateMapper(); |
| | | mapper.Map(model, entity); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace PBS.Vmo |
| | | { |
| | | public enum ePropertyType |
| | | { |
| | | /// <summary> |
| | | /// å
¬å¯ä½å®
|
| | | /// </summary> |
| | | [Display(Name = "å
¬å¯ä½å®
")] |
| | | Building = 0 |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// ç©ä¸ç±»å |
| | | /// </summary> |
| | | public long? PropertyType { get; set; } |
| | | public ePropertyType PropertyType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 竣工æ¶é´ |
| | |
| | | using HStation.WinFrmUI.Assets; |
| | | using DevExpress.XtraBars; |
| | | using HStation.WinFrmUI.Assets; |
| | | using Yw; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | } |
| | | |
| | | #endregion äºä»¶ |
| | | |
| | | private void BtnUseStatus_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var vm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (vm == null) |
| | | { |
| | | return; |
| | | } |
| | | var dlg = new SetUseStatusDlg(); |
| | | dlg.SetBindingData((Yw.Model.eUseStatus)vm.UseStatus); |
| | | dlg.ReloadDataEvent += async (status) => |
| | | { |
| | | var bol = await BLLFactory<Yw.BLL.User>.Instance.UpdateUseStatus(vm.ID, status); |
| | | if (bol) |
| | | { |
| | | vm.UseStatus = status; |
| | | this.gridView1.RefreshRow(this.gridView1.FocusedRowHandle); |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | |
| | | barBtnDetail = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnUpdateTagName = new DevExpress.XtraBars.BarButtonItem(); |
| | | barCekSearch = new DevExpress.XtraBars.BarCheckItem(); |
| | | BtnUseStatus = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPage = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | |
| | | colAddress = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUseStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | currentViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)manufacurerViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)currentViewModelBindingSource).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // ribbonControl1 |
| | | // |
| | | ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.EmptyAreaImageOptions.ImagePadding = new Padding(34, 39, 34, 39); |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnRefresh, barBtnDelete, barBtnUpdateSortCode, barBtnDetail, barBtnUpdateTagName, barCekSearch }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnRefresh, barBtnDelete, barBtnUpdateSortCode, barBtnDetail, barBtnUpdateTagName, barCekSearch, BtnUseStatus }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 28; |
| | | ribbonControl1.Margin = new Padding(3, 4, 3, 4); |
| | | ribbonControl1.MaxItemId = 29; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.OptionsMenuMinWidth = 377; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; |
| | | ribbonControl1.Size = new Size(818, 77); |
| | | ribbonControl1.Size = new Size(935, 128); |
| | | ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; |
| | | // |
| | | // barBtnAdd |
| | |
| | | barCekSearch.Name = "barCekSearch"; |
| | | barCekSearch.CheckedChanged += barCekSearch_CheckedChanged; |
| | | // |
| | | // BtnUseStatus |
| | | // |
| | | BtnUseStatus.Caption = "使ç¨ç¶æ"; |
| | | BtnUseStatus.Id = 28; |
| | | BtnUseStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnUseState.ImageOptions.SvgImage"); |
| | | BtnUseStatus.Name = "BtnUseStatus"; |
| | | BtnUseStatus.ItemClick += BtnUseStatus_ItemClick; |
| | | // |
| | | // ribbonPage |
| | | // |
| | | ribbonPage.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | |
| | | ribbonPageGroup1.ItemLinks.Add(barBtnUpdateSortCode); |
| | | ribbonPageGroup1.ItemLinks.Add(barCekSearch); |
| | | ribbonPageGroup1.ItemLinks.Add(barBtnRefresh); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnUseStatus); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "åºç¡"; |
| | | // |
| | |
| | | // |
| | | gridControl1.DataSource = manufacurerViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2); |
| | | gridControl1.Location = new Point(0, 77); |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2, 3, 2, 3); |
| | | gridControl1.Location = new Point(0, 128); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Margin = new Padding(2); |
| | | gridControl1.Margin = new Padding(2, 3, 2, 3); |
| | | gridControl1.MenuManager = ribbonControl1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(818, 604); |
| | | gridControl1.Size = new Size(935, 748); |
| | | gridControl1.TabIndex = 22; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colContacter, colTelephone, colAddress, colTagName, colUseStatus, colSortCode, colDescription }); |
| | | gridView1.DetailHeight = 223; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colContacter, colTelephone, colAddress, colTagName, colUseStatus, colDescription }); |
| | | gridView1.DetailHeight = 287; |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 560; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 640; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // colName |
| | | // |
| | | colName.FieldName = "Name"; |
| | | colName.MinWidth = 23; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.Width = 86; |
| | | // |
| | | // colContacter |
| | | // |
| | | colContacter.FieldName = "Contacter"; |
| | | colContacter.MinWidth = 23; |
| | | colContacter.Name = "colContacter"; |
| | | colContacter.Visible = true; |
| | | colContacter.VisibleIndex = 1; |
| | | colContacter.Width = 86; |
| | | // |
| | | // colTelephone |
| | | // |
| | | colTelephone.FieldName = "Telephone"; |
| | | colTelephone.MinWidth = 23; |
| | | colTelephone.Name = "colTelephone"; |
| | | colTelephone.Visible = true; |
| | | colTelephone.VisibleIndex = 2; |
| | | colTelephone.Width = 86; |
| | | // |
| | | // colAddress |
| | | // |
| | | colAddress.FieldName = "Address"; |
| | | colAddress.MinWidth = 23; |
| | | colAddress.Name = "colAddress"; |
| | | colAddress.Visible = true; |
| | | colAddress.VisibleIndex = 3; |
| | | colAddress.Width = 86; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.MinWidth = 23; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 4; |
| | | colTagName.Width = 86; |
| | | // |
| | | // colUseStatus |
| | | // |
| | | colUseStatus.FieldName = "UseStatus"; |
| | | colUseStatus.MinWidth = 23; |
| | | colUseStatus.Name = "colUseStatus"; |
| | | colUseStatus.Visible = true; |
| | | colUseStatus.VisibleIndex = 5; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 6; |
| | | colUseStatus.Width = 86; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 23; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.Width = 86; |
| | | // |
| | | // AssetsManufacturerMainPage |
| | | // |
| | | Appearance.BackColor = SystemColors.Control; |
| | | Appearance.Options.UseBackColor = true; |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(8F, 18F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(gridControl1); |
| | | Controls.Add(ribbonControl1); |
| | | Margin = new Padding(3, 5, 3, 5); |
| | | Name = "AssetsManufacturerMainPage"; |
| | | Size = new Size(818, 681); |
| | | Size = new Size(935, 876); |
| | | ((ISupportInitialize)ribbonControl1).EndInit(); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)manufacurerViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)currentViewModelBindingSource).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | |
| | | private DevExpress.XtraBars.BarButtonItem barBtnUpdateTagName; |
| | | private DevExpress.XtraBars.BarCheckItem barCekSearch; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private BindingSource currentViewModelBindingSource; |
| | | private GridView gridView1; |
| | | private BindingSource manufacurerViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAddress; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colTagName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUseStatus; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSortCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraBars.BarButtonItem BtnUseStatus; |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | |
| | | QmxhY2siIC8+DQogIDwvZz4NCjwvc3ZnPgs= |
| | | </value> |
| | | </data> |
| | | <data name="BtnUseState.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 |
| | | LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl |
| | | dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAKEDAAAC77u/ |
| | | PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi |
| | | IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv |
| | | MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh |
| | | Y2U9InByZXNlcnZlIiBpZD0iTGF5ZXJfMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAg |
| | | MzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLkJsdWV7ZmlsbDojMTE3N0Q3O30KCS5Z |
| | | ZWxsb3d7ZmlsbDojRkZCMTE1O30KCS5CbGFja3tmaWxsOiM3MjcyNzI7fQoJLkdyZWVue2ZpbGw6IzAz |
| | | OUMyMzt9CgkuUmVke2ZpbGw6I0QxMUMxQzt9Cgkuc3Qwe29wYWNpdHk6MC43NTt9Cgkuc3Qxe29wYWNp |
| | | dHk6MC41O30KPC9zdHlsZT4NCiAgPGcgaWQ9IlVzZXIiPg0KICAgIDxwYXRoIGQ9Ik0xMCw5LjljLTAu |
| | | MSwwLjUsMC4yLDAuOSwwLjQsMS40YzAuMiwwLjUtMC4xLDEuNywwLjksMS42YzAsMCwwLDAuMSwwLDAu |
| | | MmMwLjYsMi4zLDIsNC45LDQuNyw0LjkgICBjMi43LDAsNC4yLTIuNiw0LjctNC45YzAsMCwwLTAuMSww |
| | | LTAuMWMxLDAuMSwwLjYtMS4xLDAuOS0xLjZjMC4yLTAuNSwwLjQtMC45LDAuMy0xLjRjLTAuMS0wLjQt |
| | | MC40LTAuNC0wLjUtMC4zICAgYzEuOC00LjktMS4xLTQuNy0xLjEtNC43UzIwLDIsMTQuOCwyQzEwLDIs |
| | | OS40LDYsMTAuNSw5LjZDMTAuNCw5LjYsMTAuMSw5LjcsMTAsOS45eiIgY2xhc3M9IkJsYWNrIiAvPg0K |
| | | ICAgIDxwYXRoIGQ9Ik0yMCwxOGMtMC44LDEuNS0yLjEsNC00LDRjLTEuOSwwLTMuMi0yLjUtNC00Yy0y |
| | | LjMsMy41LTgsMS04LDguNVYzMGgyNHYtMy41QzI4LDE5LjEsMjIuMywyMS40LDIwLDE4eiIgY2xhc3M9 |
| | | IkJsYWNrIiAvPg0KICA8L2c+DQo8L3N2Zz4L |
| | | </value> |
| | | </data> |
| | | <metadata name="manufacurerViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>262, 17</value> |
| | | </metadata> |
| | | <metadata name="currentViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>75</value> |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddAssetsPackageMainDlg)); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | components = new Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(AddAssetsPackageMainDlg)); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | pumpAccountViewModelBindingSource = new BindingSource(components); |
| | |
| | | DescriptionTextEdit = new DevExpress.XtraEditors.MemoEdit(); |
| | | textEditNo = new DevExpress.XtraEditors.TextEdit(); |
| | | textEditCatalog = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | textEditReserveCount = new DevExpress.XtraEditors.TextEdit(); |
| | | textEditUseCount = new DevExpress.XtraEditors.TextEdit(); |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | |
| | | layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | toolTipController1 = new DevExpress.Utils.ToolTipController(components); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); |
| | | ((ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pumpAccountViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditName.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditNo.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditCatalog.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditReserveCount.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem13).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem15).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedControlGroup2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup3).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem27).BeginInit(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)pumpAccountViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); |
| | | ((ISupportInitialize)textEditName.Properties).BeginInit(); |
| | | ((ISupportInitialize)DescriptionTextEdit.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditNo.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditCatalog.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditUseCount.Properties).BeginInit(); |
| | | ((ISupportInitialize)Root).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup5).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem5).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem9).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem13).BeginInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem15).BeginInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit2.Properties).BeginInit(); |
| | | ((ISupportInitialize)tabbedControlGroup2).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup3).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup4).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem27).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // layoutControl1 |
| | |
| | | layoutControl1.Controls.Add(DescriptionTextEdit); |
| | | layoutControl1.Controls.Add(textEditNo); |
| | | layoutControl1.Controls.Add(textEditCatalog); |
| | | layoutControl1.Controls.Add(textEditReserveCount); |
| | | layoutControl1.Controls.Add(textEditUseCount); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Margin = new Padding(3, 4, 3, 4); |
| | | layoutControl1.Name = "layoutControl1"; |
| | | layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(971, 225, 650, 400); |
| | | layoutControl1.Root = Root; |
| | | layoutControl1.Size = new Size(681, 482); |
| | | layoutControl1.Size = new Size(778, 620); |
| | | layoutControl1.TabIndex = 0; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = pumpAccountViewModelBindingSource; |
| | | gridControl1.Location = new Point(8, 56); |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(3, 5, 3, 5); |
| | | gridControl1.Location = new Point(9, 66); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Margin = new Padding(3, 4, 3, 4); |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemTreeListLookUpEdit1, repositoryItemButtonEdit1 }); |
| | | gridControl1.Size = new Size(665, 133); |
| | | gridControl1.Size = new Size(760, 174); |
| | | gridControl1.TabIndex = 5; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colPumpID, colUserCount, ColDelete }); |
| | | gridView1.DetailHeight = 450; |
| | | gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | |
| | | gridView1.OptionsCustomization.AllowFilter = false; |
| | | gridView1.OptionsCustomization.AllowQuickHideColumns = false; |
| | | gridView1.OptionsCustomization.AllowSort = false; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 914; |
| | | gridView1.OptionsMenu.EnableColumnMenu = false; |
| | | gridView1.OptionsMenu.EnableFooterMenu = false; |
| | | gridView1.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom; |
| | |
| | | colPumpID.Caption = "æ³µåå·"; |
| | | colPumpID.ColumnEdit = repositoryItemTreeListLookUpEdit1; |
| | | colPumpID.FieldName = "PumpID"; |
| | | colPumpID.MinWidth = 23; |
| | | colPumpID.Name = "colPumpID"; |
| | | colPumpID.Visible = true; |
| | | colPumpID.VisibleIndex = 0; |
| | | colPumpID.Width = 598; |
| | | colPumpID.Width = 683; |
| | | // |
| | | // repositoryItemTreeListLookUpEdit1 |
| | | // |
| | |
| | | // |
| | | repositoryItemTreeListLookUpEdit1TreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { treeListColumn1 }); |
| | | repositoryItemTreeListLookUpEdit1TreeList.Location = new Point(0, 0); |
| | | repositoryItemTreeListLookUpEdit1TreeList.MinWidth = 23; |
| | | repositoryItemTreeListLookUpEdit1TreeList.Name = "repositoryItemTreeListLookUpEdit1TreeList"; |
| | | repositoryItemTreeListLookUpEdit1TreeList.OptionsView.ShowIndentAsRowStyle = true; |
| | | repositoryItemTreeListLookUpEdit1TreeList.Size = new Size(400, 200); |
| | | repositoryItemTreeListLookUpEdit1TreeList.TabIndex = 0; |
| | | repositoryItemTreeListLookUpEdit1TreeList.TreeLevelWidth = 21; |
| | | // |
| | | // treeListColumn1 |
| | | // |
| | | treeListColumn1.Caption = "æ³µåå·"; |
| | | treeListColumn1.FieldName = "Name"; |
| | | treeListColumn1.MinWidth = 23; |
| | | treeListColumn1.Name = "treeListColumn1"; |
| | | treeListColumn1.Visible = true; |
| | | treeListColumn1.VisibleIndex = 0; |
| | | treeListColumn1.Width = 86; |
| | | // |
| | | // colUserCount |
| | | // |
| | |
| | | colUserCount.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colUserCount.Caption = "ä½¿ç¨æ°é"; |
| | | colUserCount.FieldName = "UserCount"; |
| | | colUserCount.MinWidth = 23; |
| | | colUserCount.Name = "colUserCount"; |
| | | colUserCount.Visible = true; |
| | | colUserCount.VisibleIndex = 1; |
| | | colUserCount.Width = 170; |
| | | colUserCount.Width = 194; |
| | | // |
| | | // ColDelete |
| | | // |
| | |
| | | ColDelete.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ColDelete.Caption = "å é¤"; |
| | | ColDelete.ColumnEdit = repositoryItemButtonEdit1; |
| | | ColDelete.MinWidth = 23; |
| | | ColDelete.Name = "ColDelete"; |
| | | ColDelete.OptionsColumn.AllowEdit = false; |
| | | ColDelete.Visible = true; |
| | | ColDelete.VisibleIndex = 2; |
| | | ColDelete.Width = 133; |
| | | ColDelete.VisibleIndex = 1; |
| | | ColDelete.Width = 152; |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | |
| | | // |
| | | BtnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; |
| | | BtnOk.Appearance.Options.UseBackColor = true; |
| | | BtnOk.Location = new Point(495, 452); |
| | | BtnOk.Location = new Point(565, 583); |
| | | BtnOk.Margin = new Padding(3, 4, 3, 4); |
| | | BtnOk.Name = "BtnOk"; |
| | | BtnOk.Size = new Size(89, 22); |
| | | BtnOk.Size = new Size(102, 27); |
| | | BtnOk.StyleController = layoutControl1; |
| | | BtnOk.TabIndex = 7; |
| | | BtnOk.Text = "ç¡®å®"; |
| | |
| | | simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | simpleButton1.Appearance.Options.UseBackColor = true; |
| | | simpleButton1.DialogResult = DialogResult.Cancel; |
| | | simpleButton1.Location = new Point(588, 452); |
| | | simpleButton1.Location = new Point(671, 583); |
| | | simpleButton1.Margin = new Padding(3, 4, 3, 4); |
| | | simpleButton1.Name = "simpleButton1"; |
| | | simpleButton1.Size = new Size(85, 22); |
| | | simpleButton1.Size = new Size(98, 27); |
| | | simpleButton1.StyleController = layoutControl1; |
| | | simpleButton1.TabIndex = 8; |
| | | simpleButton1.Text = "åæ¶"; |
| | | // |
| | | // textEditName |
| | | // |
| | | textEditName.Location = new Point(72, 8); |
| | | textEditName.Location = new Point(86, 10); |
| | | textEditName.Margin = new Padding(3, 4, 3, 4); |
| | | textEditName.Name = "textEditName"; |
| | | textEditName.Size = new Size(266, 20); |
| | | textEditName.Size = new Size(300, 24); |
| | | textEditName.StyleController = layoutControl1; |
| | | textEditName.TabIndex = 0; |
| | | // |
| | | // DescriptionTextEdit |
| | | // |
| | | DescriptionTextEdit.Location = new Point(20, 226); |
| | | DescriptionTextEdit.Location = new Point(21, 282); |
| | | DescriptionTextEdit.Margin = new Padding(3, 4, 3, 4); |
| | | DescriptionTextEdit.Name = "DescriptionTextEdit"; |
| | | DescriptionTextEdit.Size = new Size(641, 210); |
| | | DescriptionTextEdit.Size = new Size(736, 285); |
| | | DescriptionTextEdit.StyleController = layoutControl1; |
| | | DescriptionTextEdit.TabIndex = 6; |
| | | // |
| | | // textEditNo |
| | | // |
| | | textEditNo.Location = new Point(406, 8); |
| | | textEditNo.Location = new Point(467, 10); |
| | | textEditNo.Margin = new Padding(3, 4, 3, 4); |
| | | textEditNo.Name = "textEditNo"; |
| | | textEditNo.Size = new Size(267, 20); |
| | | textEditNo.Size = new Size(302, 24); |
| | | textEditNo.StyleController = layoutControl1; |
| | | textEditNo.TabIndex = 2; |
| | | // |
| | | // textEditCatalog |
| | | // |
| | | textEditCatalog.Location = new Point(72, 32); |
| | | textEditCatalog.Location = new Point(86, 38); |
| | | textEditCatalog.Margin = new Padding(3, 4, 3, 4); |
| | | textEditCatalog.Name = "textEditCatalog"; |
| | | textEditCatalog.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); |
| | | textEditCatalog.Size = new Size(266, 20); |
| | | textEditCatalog.Size = new Size(300, 24); |
| | | textEditCatalog.StyleController = layoutControl1; |
| | | textEditCatalog.TabIndex = 3; |
| | | // |
| | | // textEditReserveCount |
| | | // textEditUseCount |
| | | // |
| | | textEditReserveCount.Location = new Point(406, 32); |
| | | textEditReserveCount.Name = "textEditReserveCount"; |
| | | textEditReserveCount.Size = new Size(267, 20); |
| | | textEditReserveCount.StyleController = layoutControl1; |
| | | textEditReserveCount.TabIndex = 4; |
| | | textEditUseCount.Location = new Point(467, 38); |
| | | textEditUseCount.Margin = new Padding(3, 4, 3, 4); |
| | | textEditUseCount.Name = "textEditUseCount"; |
| | | textEditUseCount.Size = new Size(302, 24); |
| | | textEditUseCount.StyleController = layoutControl1; |
| | | textEditUseCount.TabIndex = 4; |
| | | // |
| | | // Root |
| | | // |
| | |
| | | Root.GroupBordersVisible = false; |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem4, emptySpaceItem1, layoutControlItem8, layoutControlItem1, layoutControlGroup5, layoutControlItem2, layoutControlItem7, layoutControlItem9, layoutControlItem3 }); |
| | | Root.Name = "Root"; |
| | | Root.Padding = new DevExpress.XtraLayout.Utils.Padding(6, 6, 6, 6); |
| | | Root.Size = new Size(681, 482); |
| | | Root.Padding = new DevExpress.XtraLayout.Utils.Padding(7, 7, 8, 8); |
| | | Root.Size = new Size(778, 620); |
| | | Root.TextVisible = false; |
| | | // |
| | | // layoutControlItem4 |
| | | // |
| | | layoutControlItem4.Control = BtnOk; |
| | | layoutControlItem4.Location = new Point(487, 444); |
| | | layoutControlItem4.Location = new Point(556, 573); |
| | | layoutControlItem4.Name = "layoutControlItem4"; |
| | | layoutControlItem4.Size = new Size(93, 26); |
| | | layoutControlItem4.Size = new Size(106, 31); |
| | | layoutControlItem4.TextSize = new Size(0, 0); |
| | | layoutControlItem4.TextVisible = false; |
| | | // |
| | | // emptySpaceItem1 |
| | | // |
| | | emptySpaceItem1.AllowHotTrack = false; |
| | | emptySpaceItem1.Location = new Point(0, 444); |
| | | emptySpaceItem1.Location = new Point(0, 573); |
| | | emptySpaceItem1.Name = "emptySpaceItem1"; |
| | | emptySpaceItem1.Size = new Size(487, 26); |
| | | emptySpaceItem1.Size = new Size(556, 31); |
| | | emptySpaceItem1.TextSize = new Size(0, 0); |
| | | // |
| | | // layoutControlItem8 |
| | | // |
| | | layoutControlItem8.Control = simpleButton1; |
| | | layoutControlItem8.Location = new Point(580, 444); |
| | | layoutControlItem8.Location = new Point(662, 573); |
| | | layoutControlItem8.Name = "layoutControlItem8"; |
| | | layoutControlItem8.Size = new Size(89, 26); |
| | | layoutControlItem8.Size = new Size(102, 31); |
| | | layoutControlItem8.TextSize = new Size(0, 0); |
| | | layoutControlItem8.TextVisible = false; |
| | | // |
| | |
| | | layoutControlItem1.Control = textEditName; |
| | | layoutControlItem1.Location = new Point(0, 0); |
| | | layoutControlItem1.Name = "layoutControlItem1"; |
| | | layoutControlItem1.Size = new Size(334, 24); |
| | | layoutControlItem1.Size = new Size(381, 28); |
| | | layoutControlItem1.Text = "<color=red>*</color>åç§°:"; |
| | | layoutControlItem1.TextSize = new Size(52, 14); |
| | | layoutControlItem1.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlGroup5 |
| | | // |
| | | layoutControlGroup5.AppearanceGroup.FontSizeDelta = 1; |
| | | layoutControlGroup5.AppearanceGroup.Options.UseFont = true; |
| | | layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem5 }); |
| | | layoutControlGroup5.Location = new Point(0, 185); |
| | | layoutControlGroup5.Location = new Point(0, 234); |
| | | layoutControlGroup5.Name = "layoutControlGroup5"; |
| | | layoutControlGroup5.Size = new Size(669, 259); |
| | | layoutControlGroup5.Size = new Size(764, 339); |
| | | layoutControlGroup5.Text = "说æ"; |
| | | // |
| | | // layoutControlItem5 |
| | |
| | | layoutControlItem5.Control = DescriptionTextEdit; |
| | | layoutControlItem5.Location = new Point(0, 0); |
| | | layoutControlItem5.Name = "layoutControlItem5"; |
| | | layoutControlItem5.Size = new Size(645, 214); |
| | | layoutControlItem5.Size = new Size(740, 289); |
| | | layoutControlItem5.Text = "说æ:"; |
| | | layoutControlItem5.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.CustomSize; |
| | | layoutControlItem5.TextSize = new Size(0, 0); |
| | |
| | | // layoutControlItem2 |
| | | // |
| | | layoutControlItem2.Control = textEditNo; |
| | | layoutControlItem2.Location = new Point(334, 0); |
| | | layoutControlItem2.Location = new Point(381, 0); |
| | | layoutControlItem2.Name = "layoutControlItem2"; |
| | | layoutControlItem2.Size = new Size(335, 24); |
| | | layoutControlItem2.Size = new Size(383, 28); |
| | | layoutControlItem2.Text = "ç¼å·:"; |
| | | layoutControlItem2.TextSize = new Size(52, 14); |
| | | layoutControlItem2.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlItem7 |
| | | // |
| | | layoutControlItem7.Control = textEditCatalog; |
| | | layoutControlItem7.Location = new Point(0, 24); |
| | | layoutControlItem7.Location = new Point(0, 28); |
| | | layoutControlItem7.Name = "layoutControlItem7"; |
| | | layoutControlItem7.Size = new Size(334, 24); |
| | | layoutControlItem7.Size = new Size(381, 28); |
| | | layoutControlItem7.Text = "åç±»:"; |
| | | layoutControlItem7.TextSize = new Size(52, 14); |
| | | layoutControlItem7.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlItem9 |
| | | // |
| | | layoutControlItem9.Control = gridControl1; |
| | | layoutControlItem9.Location = new Point(0, 48); |
| | | layoutControlItem9.Location = new Point(0, 56); |
| | | layoutControlItem9.Name = "layoutControlItem9"; |
| | | layoutControlItem9.Size = new Size(669, 137); |
| | | layoutControlItem9.Size = new Size(764, 178); |
| | | layoutControlItem9.TextSize = new Size(0, 0); |
| | | layoutControlItem9.TextVisible = false; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = textEditReserveCount; |
| | | layoutControlItem3.Location = new Point(334, 24); |
| | | layoutControlItem3.Control = textEditUseCount; |
| | | layoutControlItem3.Location = new Point(381, 28); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Size = new Size(335, 24); |
| | | layoutControlItem3.Text = "è®¾å¤æ°é:"; |
| | | layoutControlItem3.TextSize = new Size(52, 14); |
| | | layoutControlItem3.Size = new Size(383, 28); |
| | | layoutControlItem3.Text = "ä½¿ç¨æ°é:"; |
| | | layoutControlItem3.TextSize = new Size(65, 18); |
| | | // |
| | | // dxErrorProvider1 |
| | | // |
| | |
| | | // |
| | | // AddAssetsPackageMainDlg |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(8F, 18F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | ClientSize = new Size(681, 482); |
| | | ClientSize = new Size(778, 620); |
| | | Controls.Add(layoutControl1); |
| | | Margin = new Padding(3, 4, 3, 4); |
| | | Name = "AddAssetsPackageMainDlg"; |
| | | StartPosition = FormStartPosition.CenterScreen; |
| | | Text = "æ·»å æå¥è®¾å¤"; |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | ((ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pumpAccountViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditName.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditNo.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditCatalog.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditReserveCount.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem13).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem15).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedControlGroup2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup3).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem27).EndInit(); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)pumpAccountViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).EndInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).EndInit(); |
| | | ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); |
| | | ((ISupportInitialize)textEditName.Properties).EndInit(); |
| | | ((ISupportInitialize)DescriptionTextEdit.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditNo.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditCatalog.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditUseCount.Properties).EndInit(); |
| | | ((ISupportInitialize)Root).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup5).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem5).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem9).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem13).EndInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem15).EndInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit2.Properties).EndInit(); |
| | | ((ISupportInitialize)tabbedControlGroup2).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup3).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup4).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem27).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUserCount; |
| | | private DevExpress.XtraGrid.Columns.GridColumn ColDelete; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraEditors.TextEdit textEditReserveCount; |
| | | private DevExpress.XtraEditors.TextEdit textEditUseCount; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | } |
| | | } |
| | |
| | | this.dxErrorProvider1.SetError(this.textEditName, "å¿
填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(textEditReserveCount.Text.Trim())) |
| | | if (string.IsNullOrEmpty(textEditUseCount.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.textEditReserveCount, "å¿
填项"); |
| | | this.dxErrorProvider1.SetError(this.textEditUseCount, "å¿
填项"); |
| | | return false; |
| | | } |
| | | |
| | | if (_allBindingList != null) |
| | | { |
| | | int.TryParse(textEditUseCount.Text, out int UseCount); |
| | | if (UseCount < _allBindingList.Count) |
| | | { |
| | | TipFormHelper.ShowError("ä½¿ç¨æ°éå¤§äºæ³µæ°é"); |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | |
| | | _EquipmentVmo.Description = DescriptionTextEdit.Text.Trim(); |
| | | _EquipmentVmo.Name = textEditName.Text.Trim(); |
| | | _EquipmentVmo.NO = textEditNo.Text.Trim(); |
| | | if (int.TryParse(this.textEditReserveCount.Text, out int equipmentCount)) |
| | | if (int.TryParse(this.textEditUseCount.Text, out int equipmentCount)) |
| | | { |
| | | _EquipmentVmo.PumpTotal = equipmentCount; |
| | | _EquipmentVmo.PumpUseCount = equipmentCount; |
| | | } |
| | | if (long.TryParse(textEditCatalog.EditValue?.ToString() ?? "", out long catalogID)) |
| | | { |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | |
| | | <value>333, 17</value> |
| | | </metadata> |
| | | <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
| | | <data name="editorButtonImageOptions1.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <data name="editorButtonImageOptions2.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 |
| | | LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditAssetsPackageMainDlg)); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | components = new Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(EditAssetsPackageMainDlg)); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | pumpAccountViewModelBindingSource = new BindingSource(components); |
| | |
| | | textEditDescription = new DevExpress.XtraEditors.MemoEdit(); |
| | | textEditNo = new DevExpress.XtraEditors.TextEdit(); |
| | | textEditCatalog = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | textEditEquipmentCount = new DevExpress.XtraEditors.TextEdit(); |
| | | textEditUseCount = new DevExpress.XtraEditors.TextEdit(); |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | |
| | | layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | toolTipController1 = new DevExpress.Utils.ToolTipController(components); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); |
| | | ((ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pumpAccountViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditName.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditDescription.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditNo.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditCatalog.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditEquipmentCount.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem13).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem15).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedControlGroup2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup3).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem27).BeginInit(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)pumpAccountViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).BeginInit(); |
| | | ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); |
| | | ((ISupportInitialize)textEditName.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditDescription.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditNo.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditCatalog.Properties).BeginInit(); |
| | | ((ISupportInitialize)textEditUseCount.Properties).BeginInit(); |
| | | ((ISupportInitialize)Root).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup5).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem5).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem9).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem13).BeginInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem15).BeginInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit2.Properties).BeginInit(); |
| | | ((ISupportInitialize)tabbedControlGroup2).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup3).BeginInit(); |
| | | ((ISupportInitialize)layoutControlGroup4).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem27).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // layoutControl1 |
| | |
| | | layoutControl1.Controls.Add(textEditDescription); |
| | | layoutControl1.Controls.Add(textEditNo); |
| | | layoutControl1.Controls.Add(textEditCatalog); |
| | | layoutControl1.Controls.Add(textEditEquipmentCount); |
| | | layoutControl1.Controls.Add(textEditUseCount); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Margin = new Padding(3, 4, 3, 4); |
| | | layoutControl1.Name = "layoutControl1"; |
| | | layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(971, 225, 650, 400); |
| | | layoutControl1.Root = Root; |
| | | layoutControl1.Size = new Size(681, 482); |
| | | layoutControl1.Size = new Size(778, 620); |
| | | layoutControl1.TabIndex = 0; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = pumpAccountViewModelBindingSource; |
| | | gridControl1.Location = new Point(8, 56); |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(3, 5, 3, 5); |
| | | gridControl1.Location = new Point(9, 71); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Margin = new Padding(3, 4, 3, 4); |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemTreeListLookUpEdit1, repositoryItemButtonEdit1 }); |
| | | gridControl1.Size = new Size(665, 133); |
| | | gridControl1.Size = new Size(760, 171); |
| | | gridControl1.TabIndex = 5; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colPumpID, colUserCount, ColDelete }); |
| | | gridView1.DetailHeight = 450; |
| | | gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | |
| | | gridView1.OptionsCustomization.AllowFilter = false; |
| | | gridView1.OptionsCustomization.AllowQuickHideColumns = false; |
| | | gridView1.OptionsCustomization.AllowSort = false; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 914; |
| | | gridView1.OptionsMenu.EnableColumnMenu = false; |
| | | gridView1.OptionsMenu.EnableFooterMenu = false; |
| | | gridView1.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom; |
| | |
| | | colPumpID.Caption = "æ³µåå·"; |
| | | colPumpID.ColumnEdit = repositoryItemTreeListLookUpEdit1; |
| | | colPumpID.FieldName = "PumpID"; |
| | | colPumpID.MinWidth = 23; |
| | | colPumpID.Name = "colPumpID"; |
| | | colPumpID.Visible = true; |
| | | colPumpID.VisibleIndex = 0; |
| | | colPumpID.Width = 598; |
| | | colPumpID.Width = 683; |
| | | // |
| | | // repositoryItemTreeListLookUpEdit1 |
| | | // |
| | |
| | | // |
| | | repositoryItemTreeListLookUpEdit1TreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { treeListColumn1 }); |
| | | repositoryItemTreeListLookUpEdit1TreeList.Location = new Point(0, 0); |
| | | repositoryItemTreeListLookUpEdit1TreeList.MinWidth = 23; |
| | | repositoryItemTreeListLookUpEdit1TreeList.Name = "repositoryItemTreeListLookUpEdit1TreeList"; |
| | | repositoryItemTreeListLookUpEdit1TreeList.OptionsView.ShowIndentAsRowStyle = true; |
| | | repositoryItemTreeListLookUpEdit1TreeList.Size = new Size(400, 200); |
| | | repositoryItemTreeListLookUpEdit1TreeList.TabIndex = 0; |
| | | repositoryItemTreeListLookUpEdit1TreeList.TreeLevelWidth = 21; |
| | | // |
| | | // treeListColumn1 |
| | | // |
| | | treeListColumn1.Caption = "æ³µåå·"; |
| | | treeListColumn1.FieldName = "Name"; |
| | | treeListColumn1.MinWidth = 23; |
| | | treeListColumn1.Name = "treeListColumn1"; |
| | | treeListColumn1.Visible = true; |
| | | treeListColumn1.VisibleIndex = 0; |
| | | treeListColumn1.Width = 86; |
| | | // |
| | | // colUserCount |
| | | // |
| | |
| | | colUserCount.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colUserCount.Caption = "ä½¿ç¨æ°é"; |
| | | colUserCount.FieldName = "UserCount"; |
| | | colUserCount.MinWidth = 23; |
| | | colUserCount.Name = "colUserCount"; |
| | | colUserCount.Visible = true; |
| | | colUserCount.VisibleIndex = 1; |
| | | colUserCount.Width = 170; |
| | | colUserCount.Width = 194; |
| | | // |
| | | // ColDelete |
| | | // |
| | |
| | | ColDelete.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ColDelete.Caption = "å é¤"; |
| | | ColDelete.ColumnEdit = repositoryItemButtonEdit1; |
| | | ColDelete.MinWidth = 23; |
| | | ColDelete.Name = "ColDelete"; |
| | | ColDelete.OptionsColumn.AllowEdit = false; |
| | | ColDelete.Visible = true; |
| | | ColDelete.VisibleIndex = 2; |
| | | ColDelete.Width = 133; |
| | | ColDelete.VisibleIndex = 1; |
| | | ColDelete.Width = 152; |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | |
| | | // |
| | | BtnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; |
| | | BtnOk.Appearance.Options.UseBackColor = true; |
| | | BtnOk.Location = new Point(495, 452); |
| | | BtnOk.Location = new Point(565, 582); |
| | | BtnOk.Margin = new Padding(3, 4, 3, 4); |
| | | BtnOk.Name = "BtnOk"; |
| | | BtnOk.Size = new Size(89, 22); |
| | | BtnOk.Size = new Size(102, 27); |
| | | BtnOk.StyleController = layoutControl1; |
| | | BtnOk.TabIndex = 7; |
| | | BtnOk.Text = "ç¡®å®"; |
| | |
| | | simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | simpleButton1.Appearance.Options.UseBackColor = true; |
| | | simpleButton1.DialogResult = DialogResult.Cancel; |
| | | simpleButton1.Location = new Point(588, 452); |
| | | simpleButton1.Location = new Point(671, 582); |
| | | simpleButton1.Margin = new Padding(3, 4, 3, 4); |
| | | simpleButton1.Name = "simpleButton1"; |
| | | simpleButton1.Size = new Size(85, 22); |
| | | simpleButton1.Size = new Size(98, 27); |
| | | simpleButton1.StyleController = layoutControl1; |
| | | simpleButton1.TabIndex = 8; |
| | | simpleButton1.Text = "åæ¶"; |
| | | // |
| | | // textEditName |
| | | // |
| | | textEditName.Location = new Point(72, 8); |
| | | textEditName.Location = new Point(88, 11); |
| | | textEditName.Margin = new Padding(3, 4, 3, 4); |
| | | textEditName.Name = "textEditName"; |
| | | textEditName.Size = new Size(266, 20); |
| | | textEditName.Size = new Size(298, 24); |
| | | textEditName.StyleController = layoutControl1; |
| | | textEditName.TabIndex = 0; |
| | | // |
| | | // textEditDescription |
| | | // |
| | | textEditDescription.Location = new Point(20, 226); |
| | | textEditDescription.Location = new Point(22, 290); |
| | | textEditDescription.Margin = new Padding(3, 4, 3, 4); |
| | | textEditDescription.Name = "textEditDescription"; |
| | | textEditDescription.Size = new Size(641, 210); |
| | | textEditDescription.Size = new Size(734, 270); |
| | | textEditDescription.StyleController = layoutControl1; |
| | | textEditDescription.TabIndex = 6; |
| | | // |
| | | // textEditNo |
| | | // |
| | | textEditNo.Location = new Point(406, 8); |
| | | textEditNo.Location = new Point(469, 11); |
| | | textEditNo.Margin = new Padding(3, 4, 3, 4); |
| | | textEditNo.Name = "textEditNo"; |
| | | textEditNo.Size = new Size(267, 20); |
| | | textEditNo.Size = new Size(300, 24); |
| | | textEditNo.StyleController = layoutControl1; |
| | | textEditNo.TabIndex = 2; |
| | | // |
| | | // textEditCatalog |
| | | // |
| | | textEditCatalog.Location = new Point(72, 32); |
| | | textEditCatalog.Location = new Point(88, 41); |
| | | textEditCatalog.Margin = new Padding(3, 4, 3, 4); |
| | | textEditCatalog.Name = "textEditCatalog"; |
| | | textEditCatalog.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); |
| | | textEditCatalog.Size = new Size(266, 20); |
| | | textEditCatalog.Size = new Size(298, 24); |
| | | textEditCatalog.StyleController = layoutControl1; |
| | | textEditCatalog.TabIndex = 3; |
| | | // |
| | | // textEditEquipmentCount |
| | | // textEditUseCount |
| | | // |
| | | textEditEquipmentCount.Location = new Point(406, 32); |
| | | textEditEquipmentCount.Name = "textEditEquipmentCount"; |
| | | textEditEquipmentCount.Size = new Size(267, 20); |
| | | textEditEquipmentCount.StyleController = layoutControl1; |
| | | textEditEquipmentCount.TabIndex = 4; |
| | | textEditUseCount.Location = new Point(469, 41); |
| | | textEditUseCount.Margin = new Padding(3, 4, 3, 4); |
| | | textEditUseCount.Name = "textEditUseCount"; |
| | | textEditUseCount.Size = new Size(300, 24); |
| | | textEditUseCount.StyleController = layoutControl1; |
| | | textEditUseCount.TabIndex = 4; |
| | | // |
| | | // Root |
| | | // |
| | |
| | | Root.GroupBordersVisible = false; |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem4, emptySpaceItem1, layoutControlItem8, layoutControlItem1, layoutControlGroup5, layoutControlItem2, layoutControlItem7, layoutControlItem9, layoutControlItem3 }); |
| | | Root.Name = "Root"; |
| | | Root.Padding = new DevExpress.XtraLayout.Utils.Padding(6, 6, 6, 6); |
| | | Root.Size = new Size(681, 482); |
| | | Root.Padding = new DevExpress.XtraLayout.Utils.Padding(7, 7, 8, 8); |
| | | Root.Size = new Size(778, 620); |
| | | Root.TextVisible = false; |
| | | // |
| | | // layoutControlItem4 |
| | | // |
| | | layoutControlItem4.Control = BtnOk; |
| | | layoutControlItem4.Location = new Point(487, 444); |
| | | layoutControlItem4.Location = new Point(556, 571); |
| | | layoutControlItem4.Name = "layoutControlItem4"; |
| | | layoutControlItem4.Size = new Size(93, 26); |
| | | layoutControlItem4.Size = new Size(106, 33); |
| | | layoutControlItem4.TextSize = new Size(0, 0); |
| | | layoutControlItem4.TextVisible = false; |
| | | // |
| | | // emptySpaceItem1 |
| | | // |
| | | emptySpaceItem1.AllowHotTrack = false; |
| | | emptySpaceItem1.Location = new Point(0, 444); |
| | | emptySpaceItem1.Location = new Point(0, 571); |
| | | emptySpaceItem1.Name = "emptySpaceItem1"; |
| | | emptySpaceItem1.Size = new Size(487, 26); |
| | | emptySpaceItem1.Size = new Size(556, 33); |
| | | emptySpaceItem1.TextSize = new Size(0, 0); |
| | | // |
| | | // layoutControlItem8 |
| | | // |
| | | layoutControlItem8.Control = simpleButton1; |
| | | layoutControlItem8.Location = new Point(580, 444); |
| | | layoutControlItem8.Location = new Point(662, 571); |
| | | layoutControlItem8.Name = "layoutControlItem8"; |
| | | layoutControlItem8.Size = new Size(89, 26); |
| | | layoutControlItem8.Size = new Size(102, 33); |
| | | layoutControlItem8.TextSize = new Size(0, 0); |
| | | layoutControlItem8.TextVisible = false; |
| | | // |
| | |
| | | layoutControlItem1.Control = textEditName; |
| | | layoutControlItem1.Location = new Point(0, 0); |
| | | layoutControlItem1.Name = "layoutControlItem1"; |
| | | layoutControlItem1.Size = new Size(334, 24); |
| | | layoutControlItem1.Size = new Size(381, 30); |
| | | layoutControlItem1.Text = "<color=red>*</color>åç§°:"; |
| | | layoutControlItem1.TextSize = new Size(52, 14); |
| | | layoutControlItem1.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlGroup5 |
| | | // |
| | | layoutControlGroup5.AppearanceGroup.FontSizeDelta = 1; |
| | | layoutControlGroup5.AppearanceGroup.Options.UseFont = true; |
| | | layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem5 }); |
| | | layoutControlGroup5.Location = new Point(0, 185); |
| | | layoutControlGroup5.Location = new Point(0, 237); |
| | | layoutControlGroup5.Name = "layoutControlGroup5"; |
| | | layoutControlGroup5.Size = new Size(669, 259); |
| | | layoutControlGroup5.Size = new Size(764, 334); |
| | | layoutControlGroup5.Text = "说æ"; |
| | | // |
| | | // layoutControlItem5 |
| | |
| | | layoutControlItem5.Control = textEditDescription; |
| | | layoutControlItem5.Location = new Point(0, 0); |
| | | layoutControlItem5.Name = "layoutControlItem5"; |
| | | layoutControlItem5.Size = new Size(645, 214); |
| | | layoutControlItem5.Size = new Size(738, 276); |
| | | layoutControlItem5.Text = "说æ:"; |
| | | layoutControlItem5.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.CustomSize; |
| | | layoutControlItem5.TextSize = new Size(0, 0); |
| | |
| | | // layoutControlItem2 |
| | | // |
| | | layoutControlItem2.Control = textEditNo; |
| | | layoutControlItem2.Location = new Point(334, 0); |
| | | layoutControlItem2.Location = new Point(381, 0); |
| | | layoutControlItem2.Name = "layoutControlItem2"; |
| | | layoutControlItem2.Size = new Size(335, 24); |
| | | layoutControlItem2.Size = new Size(383, 30); |
| | | layoutControlItem2.Text = "ç¼å·:"; |
| | | layoutControlItem2.TextSize = new Size(52, 14); |
| | | layoutControlItem2.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlItem7 |
| | | // |
| | | layoutControlItem7.Control = textEditCatalog; |
| | | layoutControlItem7.Location = new Point(0, 24); |
| | | layoutControlItem7.Location = new Point(0, 30); |
| | | layoutControlItem7.Name = "layoutControlItem7"; |
| | | layoutControlItem7.Size = new Size(334, 24); |
| | | layoutControlItem7.Size = new Size(381, 30); |
| | | layoutControlItem7.Text = "åç±»:"; |
| | | layoutControlItem7.TextSize = new Size(52, 14); |
| | | layoutControlItem7.TextSize = new Size(65, 18); |
| | | // |
| | | // layoutControlItem9 |
| | | // |
| | | layoutControlItem9.Control = gridControl1; |
| | | layoutControlItem9.Location = new Point(0, 48); |
| | | layoutControlItem9.Location = new Point(0, 60); |
| | | layoutControlItem9.Name = "layoutControlItem9"; |
| | | layoutControlItem9.Size = new Size(669, 137); |
| | | layoutControlItem9.Size = new Size(764, 177); |
| | | layoutControlItem9.TextSize = new Size(0, 0); |
| | | layoutControlItem9.TextVisible = false; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = textEditEquipmentCount; |
| | | layoutControlItem3.Location = new Point(334, 24); |
| | | layoutControlItem3.Control = textEditUseCount; |
| | | layoutControlItem3.Location = new Point(381, 30); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Size = new Size(335, 24); |
| | | layoutControlItem3.Text = "è®¾å¤æ°é:"; |
| | | layoutControlItem3.TextSize = new Size(52, 14); |
| | | layoutControlItem3.Size = new Size(383, 30); |
| | | layoutControlItem3.Text = "ä½¿ç¨æ°é:"; |
| | | layoutControlItem3.TextSize = new Size(65, 18); |
| | | // |
| | | // dxErrorProvider1 |
| | | // |
| | |
| | | // |
| | | // EditAssetsPackageMainDlg |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(8F, 18F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | ClientSize = new Size(681, 482); |
| | | ClientSize = new Size(778, 620); |
| | | Controls.Add(layoutControl1); |
| | | Margin = new Padding(3, 4, 3, 4); |
| | | Name = "EditAssetsPackageMainDlg"; |
| | | StartPosition = FormStartPosition.CenterScreen; |
| | | Text = "ç¼è¾æå¥è®¾å¤"; |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | ((ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pumpAccountViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditName.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditDescription.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditNo.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditCatalog.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditEquipmentCount.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem13).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem15).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedControlGroup2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup3).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem27).EndInit(); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)pumpAccountViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).EndInit(); |
| | | ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).EndInit(); |
| | | ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); |
| | | ((ISupportInitialize)textEditName.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditDescription.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditNo.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditCatalog.Properties).EndInit(); |
| | | ((ISupportInitialize)textEditUseCount.Properties).EndInit(); |
| | | ((ISupportInitialize)Root).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup5).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem5).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem9).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem13).EndInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem15).EndInit(); |
| | | ((ISupportInitialize)imageComboBoxEdit2.Properties).EndInit(); |
| | | ((ISupportInitialize)tabbedControlGroup2).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup3).EndInit(); |
| | | ((ISupportInitialize)layoutControlGroup4).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem27).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUserCount; |
| | | private DevExpress.XtraGrid.Columns.GridColumn ColDelete; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraEditors.TextEdit textEditEquipmentCount; |
| | | private DevExpress.XtraEditors.TextEdit textEditUseCount; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | } |
| | | } |
| | |
| | | _allBindingList = new List<PumpAccountViewModel>(); |
| | | if (pumpList != null) |
| | | { |
| | | var nameCountGroups = pumpList |
| | | .GroupBy(item => item.PumpMainID) |
| | | .Select(group => new { Name = group.Key, Count = group.Count() }); |
| | | foreach (var group in nameCountGroups) |
| | | /* var nameCountGroups = pumpList |
| | | .GroupBy(item => item.PumpMainID) |
| | | .Select(group => new { Name = group.Key, Count = group.Count() }); |
| | | */ |
| | | foreach (var group in pumpList) |
| | | { |
| | | _allBindingList.Add(new PumpAccountViewModel(group.Name, group.Count)); |
| | | _allBindingList.Add(new PumpAccountViewModel(group.PumpMainID)); |
| | | } |
| | | } |
| | | this.pumpAccountViewModelBindingSource.DataSource = _allBindingList; |
| | |
| | | this.textEditCatalog.EditValue = _EquipmentVmo.CatalogID; |
| | | this.textEditName.Text = _EquipmentVmo.Name; |
| | | this.textEditNo.Text = _EquipmentVmo.NO; |
| | | this.textEditEquipmentCount.Text = _EquipmentVmo.PumpTotal.ToString(); |
| | | this.textEditUseCount.Text = _EquipmentVmo.PumpTotal.ToString(); |
| | | this.textEditDescription.Text = _EquipmentVmo.Description; |
| | | } |
| | | |
| | |
| | | this.dxErrorProvider1.SetError(this.textEditName, "å¿
填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(textEditEquipmentCount.Text.Trim())) |
| | | if (string.IsNullOrEmpty(textEditUseCount.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.textEditEquipmentCount, "å¿
填项"); |
| | | this.dxErrorProvider1.SetError(this.textEditUseCount, "å¿
填项"); |
| | | return false; |
| | | } |
| | | if (_allBindingList != null) |
| | | { |
| | | int.TryParse(textEditUseCount.Text, out int UseCount); |
| | | if (UseCount < _allBindingList.Count) |
| | | { |
| | | TipFormHelper.ShowError("ä½¿ç¨æ°éå¤§äºæ³µæ°é"); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | return true; |
| | |
| | | _EquipmentVmo.Description = textEditDescription.Text.Trim(); |
| | | _EquipmentVmo.Name = textEditName.Text.Trim(); |
| | | _EquipmentVmo.NO = textEditNo.Text.Trim(); |
| | | if (int.TryParse(this.textEditEquipmentCount.Text, out int equipmentCount)) |
| | | if (int.TryParse(this.textEditUseCount.Text, out int equipmentCount)) |
| | | { |
| | | _EquipmentVmo.PumpUseCount = equipmentCount; |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | |
| | | <value>333, 17</value> |
| | | </metadata> |
| | | <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
| | | <data name="editorButtonImageOptions1.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <data name="editorButtonImageOptions2.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 |
| | | LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl |
| | |
| | | this.PumpID = rhs.PumpMainID; |
| | | } |
| | | |
| | | public PumpAccountViewModel(long PumpID, int Count) |
| | | public PumpAccountViewModel(long PumpID) |
| | | { |
| | | this.PumpID = PumpID; |
| | | this.UserCount = Count; |
| | | } |
| | | } |
| | | |
| | | public long ID { get; set; } |
| | | |
| | | public long PumpID { get; set; } |
| | | |
| | | public int UserCount { get; set; } |
| | | } |
| | | } |
| | | } |
| | |
| | | dlg.SetBindingData(series.ID); |
| | | dlg.ReloadDataEvent += async (rhs, allMappingList) => |
| | | { |
| | | rhs.PumpTotal = allMappingList.Count; |
| | | var id = await _bll.Insert(rhs); |
| | | if (id > 0) |
| | | { |
| | |
| | | var model = new Vmo.AssetsPackagePumpMappingVmo(); |
| | | model.PumpMainID = item.PumpID; |
| | | model.EquipmentMainID = id; |
| | | for (int i = 0; i < item.UserCount; i++) |
| | | { |
| | | await _mappingBll.Insert(model); |
| | | } |
| | | await _mappingBll.Insert(model); |
| | | } |
| | | for (int i = 0; i < _allBindingList.Count; i++) |
| | | { |
| | |
| | | dlg.SetBindingData(Equipment); |
| | | dlg.ReloadDataEvent += async (rhs, allMappingList) => |
| | | { |
| | | rhs.PumpTotal = allMappingList.Count; |
| | | if (await _bll.Update(rhs)) |
| | | { |
| | | vm.Reset(rhs); |
| | |
| | | var model = new Vmo.AssetsPackagePumpMappingVmo(); |
| | | model.PumpMainID = item.PumpID; |
| | | model.EquipmentMainID = vm.ID; |
| | | for (int i = 0; i < item.UserCount; i++) |
| | | { |
| | | await _mappingBll.Insert(model); |
| | | } |
| | | await _mappingBll.Insert(model); |
| | | } |
| | | GridView1_FocusedRowChanged(null, null); |
| | | |
| | | return true; |
| | | } |
| | |
| | | treeListLookUpEdit1.Dock = DockStyle.Fill; |
| | | treeListLookUpEdit1.EditValue = "éæ©"; |
| | | treeListLookUpEdit1.Location = new Point(0, 0); |
| | | treeListLookUpEdit1.Margin = new Padding(4, 4, 4, 4); |
| | | treeListLookUpEdit1.Name = "treeListLookUpEdit1"; |
| | | treeListLookUpEdit1.Properties.AllowFocused = false; |
| | | treeListLookUpEdit1.Properties.Appearance.Options.UseTextOptions = true; |
| | |
| | | treeListLookUpEdit1.Properties.DisplayMember = "Name"; |
| | | treeListLookUpEdit1.Properties.TreeList = treeListLookUpEdit1TreeList; |
| | | treeListLookUpEdit1.Properties.ValueMember = "ID"; |
| | | treeListLookUpEdit1.Size = new Size(215, 20); |
| | | treeListLookUpEdit1.Size = new Size(269, 24); |
| | | treeListLookUpEdit1.TabIndex = 0; |
| | | // |
| | | // treeListLookUpEdit1TreeList |
| | | // |
| | | treeListLookUpEdit1TreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName }); |
| | | treeListLookUpEdit1TreeList.HorzScrollStep = 4; |
| | | treeListLookUpEdit1TreeList.Location = new Point(0, 0); |
| | | treeListLookUpEdit1TreeList.MinWidth = 25; |
| | | treeListLookUpEdit1TreeList.Name = "treeListLookUpEdit1TreeList"; |
| | | treeListLookUpEdit1TreeList.RootValue = "0"; |
| | | treeListLookUpEdit1TreeList.Size = new Size(400, 200); |
| | | treeListLookUpEdit1TreeList.TabIndex = 0; |
| | | treeListLookUpEdit1TreeList.TreeLevelWidth = 22; |
| | | // |
| | | // colName |
| | | // |
| | | colName.Caption = "åç§°"; |
| | | colName.FieldName = "Name"; |
| | | colName.MinWidth = 25; |
| | | colName.Name = "colName"; |
| | | colName.Width = 94; |
| | | // |
| | | // svgImageTree |
| | | // |
| | |
| | | // |
| | | // SelectCorprationListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(96F, 96F); |
| | | AutoScaleDimensions = new SizeF(120F, 120F); |
| | | AutoScaleMode = AutoScaleMode.Dpi; |
| | | Controls.Add(treeListLookUpEdit1); |
| | | Margin = new Padding(4, 4, 4, 4); |
| | | Name = "SelectCorprationListCtrl"; |
| | | Size = new Size(215, 46); |
| | | Size = new Size(269, 58); |
| | | ((System.ComponentModel.ISupportInitialize)treeListLookUpEdit1.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)treeListLookUpEdit1TreeList).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImageTree).EndInit(); |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | |
| | | private PlaceBuildParasInfoVmo _model = null; |
| | | private PlaceBuildParasInfoVmo _model = null; |
| | | |
| | | public void Set(string info) |
| | | { |
| | |
| | | } |
| | | |
| | | public bool Verify() |
| | | { |
| | | this.dxErrorProvider1.ClearErrors(); |
| | | { |
| | | this.dxErrorProvider1.ClearErrors(); |
| | | return true; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | _model.CompletionTime = txtCompletionTime.Text; |
| | | _model.Developer = txtDeveloper.Text; |
| | | _model.PropertyType = cbPropertyType.SelectedIndex; |
| | | _model.Developer = txtDeveloper.Text; |
| | | if (cbPropertyType.EditValue != null) |
| | | _model.PropertyType = (ePropertyType)cbPropertyType.EditValue; |
| | | |
| | | if (string.IsNullOrEmpty(this.txtAreaSquare.Text) || !double.TryParse(this.txtAreaSquare.Text, out double areaSquare)) |
| | | { |
| | |
| | | |
| | | if (string.IsNullOrEmpty(this.textGreeningRate.Text) || !double.TryParse(this.textGreeningRate.Text, out double greeningRate)) |
| | | { |
| | | _model.GreeningRate = null; |
| | | _model.GreeningRate = null; |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | if (string.IsNullOrEmpty(this.txtPlotRatio.Text) || !double.TryParse(this.txtPlotRatio.Text, out double plotRatio)) |
| | | { |
| | | _model.PlotRatio = null; |
| | | _model.PlotRatio = null; |
| | | } |
| | | else |
| | | { |
| | | _model.PlotRatio = plotRatio; |
| | | } |
| | | |
| | | |
| | | if (string.IsNullOrEmpty(this.txtProperTyYears.Text) || !int.TryParse(this.txtProperTyYears.Text, out int properTyYears)) |
| | | { |
| | |
| | | |
| | | return _model.ToJson(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(EditWaterWEDlg)); |
| | | SerializableAppearanceObject serializableAppearanceObject5 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject6 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject7 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject8 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject1 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject2 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject3 = new SerializableAppearanceObject(); |
| | | SerializableAppearanceObject serializableAppearanceObject4 = new SerializableAppearanceObject(); |
| | | dataLayoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | itemViewModelBindingSource = new BindingSource(components); |
| | |
| | | // |
| | | gridControl1.DataSource = itemViewModelBindingSource; |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(3, 5, 3, 5); |
| | | gridControl1.Location = new Point(13, 46); |
| | | gridControl1.Location = new Point(12, 40); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Margin = new Padding(3, 4, 3, 4); |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemTreeListLookUpEdit1, repositoryItemButtonEdit1 }); |
| | | gridControl1.Size = new Size(742, 409); |
| | | gridControl1.Size = new Size(744, 421); |
| | | gridControl1.TabIndex = 6; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); |
| | | editorButtonImageOptions2.SvgImageSize = new Size(25, 25); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, ToolTipAnchor.Default) }); |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | editorButtonImageOptions1.SvgImageSize = new Size(25, 25); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | |
| | | // |
| | | btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; |
| | | btnOk.Appearance.Options.UseBackColor = true; |
| | | btnOk.Location = new Point(552, 461); |
| | | btnOk.Location = new Point(552, 465); |
| | | btnOk.Margin = new Padding(3, 4, 3, 4); |
| | | btnOk.Name = "btnOk"; |
| | | btnOk.Size = new Size(105, 27); |
| | | btnOk.Size = new Size(106, 27); |
| | | btnOk.StyleController = dataLayoutControl1; |
| | | btnOk.TabIndex = 7; |
| | | btnOk.Text = "ç¡®å®"; |
| | |
| | | btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | btnCancel.Appearance.Options.UseBackColor = true; |
| | | btnCancel.DialogResult = DialogResult.Cancel; |
| | | btnCancel.Location = new Point(661, 461); |
| | | btnCancel.Location = new Point(662, 465); |
| | | btnCancel.Margin = new Padding(3, 4, 3, 4); |
| | | btnCancel.Name = "btnCancel"; |
| | | btnCancel.Size = new Size(94, 27); |
| | |
| | | // |
| | | // textEditName |
| | | // |
| | | textEditName.Location = new Point(100, 16); |
| | | textEditName.Location = new Point(97, 12); |
| | | textEditName.Margin = new Padding(3, 4, 3, 4); |
| | | textEditName.Name = "textEditName"; |
| | | textEditName.Size = new Size(655, 24); |
| | | textEditName.Size = new Size(659, 24); |
| | | textEditName.StyleController = dataLayoutControl1; |
| | | textEditName.TabIndex = 10; |
| | | // |
| | |
| | | layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem2, emptySpaceItem1, layoutControlItem4, layoutControlItem3 }); |
| | | layoutControlGroup1.Location = new Point(0, 0); |
| | | layoutControlGroup1.Name = "autoGeneratedGroup0"; |
| | | layoutControlGroup1.Size = new Size(746, 478); |
| | | layoutControlGroup1.Size = new Size(748, 484); |
| | | // |
| | | // layoutControlItem1 |
| | | // |
| | | layoutControlItem1.Control = btnCancel; |
| | | layoutControlItem1.Location = new Point(648, 445); |
| | | layoutControlItem1.Location = new Point(650, 453); |
| | | layoutControlItem1.Name = "layoutControlItem1"; |
| | | layoutControlItem1.Size = new Size(98, 33); |
| | | layoutControlItem1.Size = new Size(98, 31); |
| | | layoutControlItem1.TextSize = new Size(0, 0); |
| | | layoutControlItem1.TextVisible = false; |
| | | // |
| | | // layoutControlItem2 |
| | | // |
| | | layoutControlItem2.Control = btnOk; |
| | | layoutControlItem2.Location = new Point(539, 445); |
| | | layoutControlItem2.Location = new Point(540, 453); |
| | | layoutControlItem2.Name = "layoutControlItem2"; |
| | | layoutControlItem2.Size = new Size(109, 33); |
| | | layoutControlItem2.Size = new Size(110, 31); |
| | | layoutControlItem2.TextSize = new Size(0, 0); |
| | | layoutControlItem2.TextVisible = false; |
| | | // |
| | | // emptySpaceItem1 |
| | | // |
| | | emptySpaceItem1.AllowHotTrack = false; |
| | | emptySpaceItem1.Location = new Point(0, 445); |
| | | emptySpaceItem1.Location = new Point(0, 453); |
| | | emptySpaceItem1.Name = "emptySpaceItem1"; |
| | | emptySpaceItem1.Size = new Size(539, 33); |
| | | emptySpaceItem1.Size = new Size(540, 31); |
| | | emptySpaceItem1.TextSize = new Size(0, 0); |
| | | // |
| | | // layoutControlItem4 |
| | |
| | | layoutControlItem4.Control = textEditName; |
| | | layoutControlItem4.Location = new Point(0, 0); |
| | | layoutControlItem4.Name = "layoutControlItem4"; |
| | | layoutControlItem4.Size = new Size(746, 30); |
| | | layoutControlItem4.Size = new Size(748, 28); |
| | | layoutControlItem4.Text = "<color=red>*</color>å¨å
·åç§°:"; |
| | | layoutControlItem4.TextSize = new Size(73, 18); |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = gridControl1; |
| | | layoutControlItem3.Location = new Point(0, 30); |
| | | layoutControlItem3.Location = new Point(0, 28); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Size = new Size(746, 415); |
| | | layoutControlItem3.Size = new Size(748, 425); |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | |
| | | Margin = new Padding(3, 4, 3, 4); |
| | | Name = "EditWaterWEDlg"; |
| | | StartPosition = FormStartPosition.CenterParent; |
| | | Text = "ç¼è¾"; |
| | | Text = "设置"; |
| | | ((ISupportInitialize)dataLayoutControl1).EndInit(); |
| | | dataLayoutControl1.ResumeLayout(false); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | |
| | | <value>172, 17</value> |
| | | </metadata> |
| | | <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
| | | <data name="editorButtonImageOptions2.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <data name="editorButtonImageOptions1.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 |
| | | LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl |
| | |
| | | using Yw.WinFrmUI; |
| | | using DevExpress.Utils.Extensions; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace PBS.WinFrmUI.WE |
| | | { |
| | |
| | | if (await _bll.DeleteByID(vm.ID)) |
| | | { |
| | | MessageBoxHelper.ShowSuccess("å 餿å!"); |
| | | _allBindingList.Remove(vm); |
| | | |
| | | // å
è®°å½è¦å é¤çå
ç´ |
| | | var itemsToRemove = new List<ItemViewModel>(); |
| | | foreach (var item in _allBindingList) |
| | | { |
| | | if (item.Name == vm.Name) |
| | | { |
| | | itemsToRemove.Add(item); |
| | | } |
| | | } |
| | | |
| | | // ç»ä¸å é¤è®°å½çå
ç´ |
| | | foreach (var item in itemsToRemove) |
| | | { |
| | | _allBindingList.Remove(item); |
| | | } |
| | | this.itemViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | else MessageBoxHelper.ShowError($"å é¤å¤±è´¥!"); |
| | |
| | | } |
| | | |
| | | #endregion |
| | | private HomePbsProjectPropertyCtrl homeXhsProjectPropertyCtrl1; |
| | | private DevExpress.Utils.SvgImageCollection svgImg32; |
| | | private DevExpress.Utils.SvgImageCollection svgImg32; |
| | | private DevExpress.XtraEditors.SidePanel sidePanelBottom; |
| | | private DevExpress.XtraBars.Docking.DockManager dockManager1; |
| | | private DevExpress.XtraBars.Docking.DockPanel dockPanelRight; |
| | |
| | | this.PageTitle.SvgImageSize = new Size(24, 24); |
| | | // this.xhsProjectHomeTitleCtrl1.JumpEvent += XhsProjectHomeTitleCtrl1_JumpEvent; |
| | | this.mapViewProjectListContainer2.LoadCompletedEvent += MapViewProjectListContainer1_LoadCompletedEvent; |
| | | this.homeXhsProjectPropertyCtrl2.SelectProjectEvent += homeXhsProjectTreeListCtrl1_SelectProjectEvent; |
| | | } |
| | | |
| | | private List<FacilityVmo> _allProjectList = null;//ææé¡¹ç®å表 |
| | |
| | | //å°å¾å è½½å®æ |
| | | private async void MapViewProjectListContainer1_LoadCompletedEvent() |
| | | { |
| | | await this.mapViewProjectListContainer2.SetProjectList(_allProjectList); |
| | | await this.mapViewProjectListContainer2.SetProjectList(_allProjectList); |
| | | // this.homeXhsProjectTreeListCtrl1.SetBindingData(_allProjectList); |
| | | } |
| | | |
| | | /* //鿩项ç®äºä»¶ |
| | | private async void homeXhsProjectTreeListCtrl1_SelectProjectEvent(XhsProjectVmo obj) |
| | | { |
| | | await this.mapViewProjectListContainer1.SelectProject(obj.ID); |
| | | var vm = new HomeXhsProjectPropertyViewModel(obj); |
| | | this.homeXhsProjectPropertyCtrl1.SelectedObject = vm; |
| | | }*/ |
| | | //鿩项ç®äºä»¶ |
| | | private async void homeXhsProjectTreeListCtrl1_SelectProjectEvent(FacilityVmo obj) |
| | | { |
| | | await this.mapViewProjectListContainer2.SelectProject(obj.ID); |
| | | var vm = new HomePbsProjectPropertyViewModel(obj); |
| | | this.homeXhsProjectPropertyCtrl2.SelectedObject = vm; |
| | | |
| | | /* await this.mapViewProjectListContainer1.SelectProject(obj.ID); |
| | | var vm = new HomeXhsProjectPropertyViewModel(obj); |
| | | this.homeXhsProjectPropertyCtrl1.SelectedObject = vm;*/ |
| | | } |
| | | |
| | | /* //导å
¥å®æäºä»¶ |
| | | private void homeXhsProjectTreeListCtrl1_ImportProjectCompletedEvent(ImportXhsProjectViewModel obj) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace _00_home._01_prjlist |
| | | { |
| | | partial class XtraUserControl1 |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Component Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using DevExpress.XtraEditors; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace _00_home._01_prjlist |
| | | { |
| | | public partial class XtraUserControl1 : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | public XtraUserControl1() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
| | |
| | | this.Description = project.Description; |
| | | var marker = Yw.Model.Map.Marker.ToModel(mapInfo.Position); |
| | | this.Point = marker?.Point; |
| | | //this.Customer = project.Customer; |
| | | this.Address = marker?.Address; |
| | | //this.Customer = project.Customer; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// åæ |
| | | /// </summary> |
| | | public Yw.Model.Map.Point Point { get; set; } |
| | | /// <summary> |
| | | /// 详ç»ä½ç½® |
| | | /// </summary> |
| | | public string Address { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | #endregion |
| | | |
| | | private Yw.WinFrmUI.WebViewControl webViewControl1; |
| | | private WebViewControl webViewControl2; |
| | | private Yw.WinFrmUI.WebViewControl webViewControl2; |
| | | } |
| | | } |
| | |
| | | { |
| | | if (long.TryParse(obj, out long PrjID)) |
| | | { |
| | | JumpDirectEvent.Invoke(PrjID); |
| | | //JumpDirectEvent.Invoke(PrjID); |
| | | } |
| | | } |
| | | |
| | |
| | | layoutProperty = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
| | | layoutDescription = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | bindingSource1 = new BindingSource(components); |
| | | layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | ((ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((ISupportInitialize)barManager1).BeginInit(); |
| | |
| | | ((ISupportInitialize)layoutProperty).BeginInit(); |
| | | ((ISupportInitialize)splitterItem1).BeginInit(); |
| | | ((ISupportInitialize)layoutDescription).BeginInit(); |
| | | ((ISupportInitialize)bindingSource1).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | |
| | | toolTipItem4.Text = "跳转"; |
| | | superToolTip4.Items.Add(toolTipItem4); |
| | | barBtnDirect.SuperTip = superToolTip4; |
| | | barBtnDirect.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; |
| | | barBtnDirect.ItemClick += barBtnDirect_ItemClick; |
| | | // |
| | | // barDockControlTop |
| | |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.Location = new Point(2, 334); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.MenuManager = barManager1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(293, 329); |
| | | gridControl1.TabIndex = 6; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | gridView1.FocusedRowChanged += gridView1_FocusedRowChanged; |
| | | // |
| | | // gridColumn1 |
| | | // |
| | |
| | | gridColumn1.Visible = true; |
| | | gridColumn1.VisibleIndex = 0; |
| | | gridColumn1.Width = 94; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.Location = new Point(2, 334); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.MenuManager = barManager1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(293, 329); |
| | | gridControl1.TabIndex = 6; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // HomePbsProjectPropertyCtrl |
| | | // |
| | |
| | | ((ISupportInitialize)layoutProperty).EndInit(); |
| | | ((ISupportInitialize)splitterItem1).EndInit(); |
| | | ((ISupportInitialize)layoutDescription).EndInit(); |
| | | ((ISupportInitialize)bindingSource1).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | |
| | | private DevExpress.XtraBars.BarButtonItem barBtnExpandAll; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnCollpseAll; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnDirect; |
| | | private BindingSource bindingSource1; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; |
| | | } |
| | | } |
| | |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.Mvvm.POCO; |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.Repository; |
| | | using DevExpress.XtraLayout.Utils; |
| | | using DevExpress.XtraVerticalGrid.Events; |
| | | using PBS.Vmo; |
| | | using System.ComponentModel; |
| | | using Yw.Untity; |
| | | using Yw.WinFrmUI; |
| | |
| | | //this.layoutControl1.SetupLayoutControl(); |
| | | SetDescriptionVisible(false);//é»è®¤è®¾ç½®å±æ§æè¿°é¢æ¿ä¸æ¾ç¤º |
| | | this.barBtnDirect.Visibility = BarItemVisibility.Never; |
| | | this.Load += HomePbsProjectPropertyCtrl_Load; |
| | | this.gridView1.SetNormalView(30); |
| | | } |
| | | |
| | | private async void HomePbsProjectPropertyCtrl_Load(object sender, EventArgs e) |
| | | { |
| | | _allBindingList = await new BLL.Facility().GetAll(); |
| | | this.bindingSource1.DataSource = _allBindingList; |
| | | this.gridControl1.DataSource = bindingSource1; |
| | | this.bindingSource1.ResetBindings(false); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转äºä»¶ |
| | | /// </summary> |
| | | public event Action<long> JumpDirectEvent; |
| | | |
| | | private List<FacilityVmo> _allBindingList; |
| | | |
| | | /// <summary> |
| | | /// 鿩项ç®äºä»¶ |
| | | /// </summary> |
| | | public event Action<FacilityVmo> SelectProjectEvent; |
| | | |
| | | /// <summary> |
| | | /// ç»å®å¯¹è±¡ |
| | |
| | | } |
| | | JumpDirectEvent?.Invoke(this.SelectedObject.Project.ID);*/ |
| | | } |
| | | |
| | | private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | | { |
| | | var vm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (vm != null) |
| | | { |
| | | SelectProjectEvent.Invoke(vm); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | NnY2TDI4LDE2eiIgY2xhc3M9IkJsdWUiIC8+DQogIDwvZz4NCjwvc3ZnPgs= |
| | | </value> |
| | | </data> |
| | | <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>175, 17</value> |
| | | </metadata> |
| | | </root> |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /* public HomeXhsProjectPropertyViewModel(XhsProjectVmo rhs) |
| | | public HomePbsProjectPropertyViewModel(Vmo.FacilityVmo rhs) |
| | | { |
| | | this.NO = rhs.NO; |
| | | this.Name = rhs.Name; |
| | | this.Address = rhs.Address; |
| | | this.Customer = rhs.Customer; |
| | | this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.TagName = rhs.TagName; |
| | | this.Description = rhs.Description; |
| | | |
| | | this.WaterSupply = rhs.WaterSupply; |
| | | this.SupplyMode = rhs.SupplyMode; |
| | | this.Floor = rhs.Floor; |
| | | this.FloorHeight = rhs.FloorHeight; |
| | | this.Households = rhs.Households; |
| | | this.MaxWaterDemand = rhs.MaxWaterDemand; |
| | | this.ConstantPressure = rhs.ConstantPressure; |
| | | this.TerminalPressure = rhs.TerminalPressure; |
| | | this.MaxHeight = rhs.MaxHeight; |
| | | this.Project = rhs; |
| | | }*/ |
| | | |
| | | /// <summary> |
| | | /// ç¼å· |
| | | /// </summary> |
| | | [DisplayName("项ç®ç¼å·")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(1)] |
| | | [Browsable(true)] |
| | | public string NO { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åç§° |
| | | /// </summary> |
| | | [DisplayName("项ç®åç§°")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(2)] |
| | | [PropertyOrder(0)] |
| | | [Browsable(true)] |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 详ç»å°å |
| | | /// </summary> |
| | | [DisplayName("详ç»å°å")] |
| | | /// 便°´åå
|
| | | ///</summary> |
| | | [DisplayName("便°´åå
")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(6)] |
| | | [MultiText] |
| | | [PropertyOrder(2)] |
| | | [Browsable(true)] |
| | | public string Address { get; set; } |
| | | public eWaterSupply WaterSupply { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 客æ·åç§° |
| | | /// </summary> |
| | | [DisplayName("客æ·åç§°")] |
| | | /// 便°´æ¨¡å¼ |
| | | ///</summary> |
| | | [DisplayName("便°´æ¨¡å¼")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(3)] |
| | | [Browsable(true)] |
| | | public eSupplyMode SupplyMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥¼å± |
| | | ///</summary> |
| | | [DisplayName("楼å±")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(3)] |
| | | [Browsable(true)] |
| | | public int Floor { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å±é« |
| | | ///</summary> |
| | | [DisplayName("å±é«")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(4)] |
| | | [Browsable(true)] |
| | | public double? FloorHeight { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ·æ° |
| | | ///</summary> |
| | | [DisplayName("æ·æ°")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(5)] |
| | | [Browsable(true)] |
| | | public int? Households { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå¤§éæ°´é |
| | | ///</summary> |
| | | [DisplayName("æå¤§éæ°´é")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(6)] |
| | | [Browsable(true)] |
| | | public double? MaxWaterDemand { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå®åå |
| | | ///</summary> |
| | | [DisplayName("æå®åå")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(7)] |
| | | [Browsable(true)] |
| | | public string Customer { get; set; } |
| | | public double? ConstantPressure { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ«ç«¯åå |
| | | ///</summary> |
| | | [DisplayName("æ«ç«¯åå")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(8)] |
| | | [Browsable(true)] |
| | | public double? TerminalPressure { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æé«æ¥¼å±æ é« |
| | | /// </summary> |
| | | [DisplayName("æé«æ¥¼å±æ é«")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(9)] |
| | | [Browsable(true)] |
| | | public double MaxHeight { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ ç¾ |
| | | /// </summary> |
| | | [DisplayName("æ ç¾")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(8)] |
| | | [PropertyOrder(10)] |
| | | [Browsable(true)] |
| | | public string Flags { get; set; } |
| | | |
| | |
| | | /// </summary> |
| | | [DisplayName("æ å¿")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(9)] |
| | | [PropertyOrder(11)] |
| | | [Browsable(true)] |
| | | public string TagName { get; set; } |
| | | |
| | |
| | | /// </summary> |
| | | [DisplayName("说æ")] |
| | | [Category("åºæ¬ä¿¡æ¯")] |
| | | [PropertyOrder(10)] |
| | | [PropertyOrder(12)] |
| | | [Browsable(true)] |
| | | [MultiText] |
| | | public string Description { get; set; } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /* [Browsable(false)] |
| | | public XhsProjectVmo Project { get; set; }*/ |
| | | [Browsable(false)] |
| | | public Vmo.FacilityVmo Project { get; set; } |
| | | } |
| | | } |
| | |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | cbPropertyType = new DevExpress.XtraEditors.ComboBoxEdit(); |
| | | txtCompletionTime = new DevExpress.XtraEditors.TextEdit(); |
| | | txtProperTyYears = new DevExpress.XtraEditors.TextEdit(); |
| | | txtTotalHouseHolds = new DevExpress.XtraEditors.TextEdit(); |
| | |
| | | emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | | layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); |
| | | cbPropertyType = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)cbPropertyType.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtCompletionTime.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtProperTyYears.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtTotalHouseHolds.Properties).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem11).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)cbPropertyType.Properties).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // layoutControl1 |
| | | // |
| | | layoutControl1.Controls.Add(cbPropertyType); |
| | | layoutControl1.Controls.Add(txtCompletionTime); |
| | | layoutControl1.Controls.Add(txtProperTyYears); |
| | | layoutControl1.Controls.Add(txtTotalHouseHolds); |
| | |
| | | layoutControl1.Controls.Add(txtPlotRatio); |
| | | layoutControl1.Controls.Add(txtDeveloper); |
| | | layoutControl1.Controls.Add(textGreeningRate); |
| | | layoutControl1.Controls.Add(cbPropertyType); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Margin = new Padding(3, 4, 3, 4); |
| | |
| | | layoutControl1.Size = new Size(925, 321); |
| | | layoutControl1.TabIndex = 91; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // cbPropertyType |
| | | // |
| | | cbPropertyType.Location = new Point(121, 52); |
| | | cbPropertyType.Margin = new Padding(2, 3, 2, 3); |
| | | cbPropertyType.MinimumSize = new Size(0, 36); |
| | | cbPropertyType.Name = "cbPropertyType"; |
| | | cbPropertyType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); |
| | | cbPropertyType.Properties.Items.AddRange(new object[] { "å
¬å¯ä½å®
" }); |
| | | cbPropertyType.Properties.NullText = "è¯·éæ©"; |
| | | cbPropertyType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
| | | cbPropertyType.Size = new Size(339, 36); |
| | | cbPropertyType.StyleController = layoutControl1; |
| | | cbPropertyType.TabIndex = 6; |
| | | // |
| | | // txtCompletionTime |
| | | // |
| | |
| | | // |
| | | dxErrorProvider1.ContainerControl = this; |
| | | // |
| | | // cbPropertyType |
| | | // |
| | | cbPropertyType.Location = new Point(121, 52); |
| | | cbPropertyType.Margin = new Padding(2, 3, 2, 3); |
| | | cbPropertyType.MinimumSize = new Size(0, 36); |
| | | cbPropertyType.Name = "cbPropertyType"; |
| | | cbPropertyType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); |
| | | cbPropertyType.Properties.NullText = "è¯·éæ©"; |
| | | cbPropertyType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
| | | cbPropertyType.Size = new Size(339, 36); |
| | | cbPropertyType.StyleController = layoutControl1; |
| | | cbPropertyType.TabIndex = 6; |
| | | // |
| | | // BuildWizardForm |
| | | // |
| | | AutoScaleDimensions = new SizeF(8F, 18F); |
| | |
| | | Margin = new Padding(2, 3, 2, 3); |
| | | Name = "BuildWizardForm"; |
| | | Size = new Size(925, 321); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)cbPropertyType.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtCompletionTime.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtProperTyYears.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtTotalHouseHolds.Properties).EndInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem11).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)cbPropertyType.Properties).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | private DevExpress.XtraLayout.LayoutControl layoutControl1; |
| | | private DevExpress.XtraEditors.ComboBoxEdit cbPropertyType; |
| | | private DevExpress.XtraEditors.TextEdit txtCompletionTime; |
| | | private DevExpress.XtraEditors.TextEdit txtProperTyYears; |
| | | private DevExpress.XtraEditors.TextEdit txtTotalHouseHolds; |
| | |
| | | private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider dxErrorProvider1; |
| | | private DevExpress.XtraEditors.TextEdit textGreeningRate; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; |
| | | private DevExpress.XtraEditors.ImageComboBoxEdit cbPropertyType; |
| | | } |
| | | } |
| | |
| | | public BuildWizardForm() |
| | | { |
| | | InitializeComponent(); |
| | | this.Load += BuildWizardForm_Load; |
| | | } |
| | | |
| | | private void BuildWizardForm_Load(object sender, EventArgs e) |
| | | { |
| | | this.cbPropertyType.Properties.AddEnum(typeof(ePropertyType)); |
| | | } |
| | | |
| | | //åºç¡éªè¯ |
| | |
| | | { |
| | | return null; |
| | | } |
| | | /*var m = new PlaceBuildParasInfo() |
| | | { |
| | | // Address = txtAddress.Text, |
| | | // Area = (long?)this.cbArea.EditValue, |
| | | // City = (long?)this.cbCity.EditValue, |
| | | // Dist = (long?)this.cbDist.EditValue, |
| | | AreaSquare = string.IsNullOrEmpty(txtAreaSquare.Text) ? null : double.Parse(txtAreaSquare.Text), |
| | | CompletionTime = txtCompletionTime.Text, |
| | | Developer = txtDeveloper.Text, |
| | | GreeningRate = string.IsNullOrEmpty(this.textGreeningRate.Text) ? null : double.Parse(textGreeningRate.Text), |
| | | // Name = txtName.Text, |
| | | PlotRatio = string.IsNullOrEmpty(txtPlotRatio.Text) ? null : double.Parse(txtPlotRatio.Text), |
| | | PropertyType = 1, |
| | | ProperTyYears = string.IsNullOrEmpty(txtProperTyYears.Text) ? 0 : int.Parse(txtProperTyYears.Text), |
| | | TotalHouseHolds = string.IsNullOrEmpty(txtTotalHouseHolds.Text) ? 0 : int.Parse(txtTotalHouseHolds.Text) |
| | | };*/ |
| | | var m = new PlaceBuildParasInfoVmo(); |
| | | var model = new PlaceBuildParasInfoVmo(); |
| | | // å¤ç AreaSquare |
| | | if (string.IsNullOrEmpty(txtAreaSquare.Text) || !double.TryParse(txtAreaSquare.Text, out double areaSquare)) |
| | | { |
| | | m.AreaSquare = null; |
| | | model.AreaSquare = null; |
| | | } |
| | | else |
| | | { |
| | | m.AreaSquare = areaSquare; |
| | | model.AreaSquare = areaSquare; |
| | | } |
| | | |
| | | // å¤ç CompletionTime |
| | | m.CompletionTime = txtCompletionTime.Text; |
| | | model.CompletionTime = txtCompletionTime.Text; |
| | | |
| | | // å¤ç Developer |
| | | m.Developer = txtDeveloper.Text; |
| | | model.Developer = txtDeveloper.Text; |
| | | |
| | | // å¤ç GreeningRate |
| | | if (string.IsNullOrEmpty(textGreeningRate.Text) || !double.TryParse(textGreeningRate.Text, out double greeningRate)) |
| | | { |
| | | m.GreeningRate = null; |
| | | model.GreeningRate = null; |
| | | } |
| | | else |
| | | { |
| | | m.GreeningRate = greeningRate; |
| | | model.GreeningRate = greeningRate; |
| | | } |
| | | |
| | | // å¤ç PlotRatio |
| | | if (string.IsNullOrEmpty(txtPlotRatio.Text) || !double.TryParse(txtPlotRatio.Text, out double plotRatio)) |
| | | { |
| | | m.PlotRatio = null; |
| | | model.PlotRatio = null; |
| | | } |
| | | else |
| | | { |
| | | m.PlotRatio = plotRatio; |
| | | model.PlotRatio = plotRatio; |
| | | } |
| | | |
| | | // å¤ç PropertyType |
| | | m.PropertyType = 1; |
| | | |
| | | // å¤ç ProperTyYears |
| | | if (string.IsNullOrEmpty(txtProperTyYears.Text) || !int.TryParse(txtProperTyYears.Text, out int properTyYears)) |
| | | { |
| | | m.ProperTyYears = 0; |
| | | model.ProperTyYears = 0; |
| | | } |
| | | else |
| | | { |
| | | m.ProperTyYears = properTyYears; |
| | | model.ProperTyYears = properTyYears; |
| | | } |
| | | |
| | | // å¤ç TotalHouseHolds |
| | | if (string.IsNullOrEmpty(txtTotalHouseHolds.Text) || !int.TryParse(txtTotalHouseHolds.Text, out int totalHouseHolds)) |
| | | { |
| | | m.TotalHouseHolds = 0; |
| | | model.TotalHouseHolds = 0; |
| | | } |
| | | else |
| | | { |
| | | m.TotalHouseHolds = totalHouseHolds; |
| | | model.TotalHouseHolds = totalHouseHolds; |
| | | } |
| | | return m; |
| | | if (this.cbPropertyType.EditValue != null) |
| | | { |
| | | model.PropertyType = (ePropertyType)this.cbPropertyType.EditValue; |
| | | } |
| | | return model; |
| | | } |
| | | |
| | | public void SetData(PlaceBuildParasInfoVmo model) |
| | | { |
| | | if (model == null) return; |
| | | // txtAddress.Text = model.Address; |
| | | txtAreaSquare.Text = model.AreaSquare.ToString(); |
| | | txtCompletionTime.Text = model.CompletionTime.ToString(); |
| | | txtDeveloper.Text = model.Developer.ToString(); |
| | | textGreeningRate.Text = model.GreeningRate.ToString(); |
| | | // txtName.Text = model.Name.ToString(); |
| | | txtPlotRatio.Text = model.PlotRatio.ToString(); |
| | | txtProperTyYears.Text = model.ProperTyYears.ToString(); |
| | | txtTotalHouseHolds.Text = model.TotalHouseHolds.ToString(); |
| | | // cbArea.EditValue = model.Area; |
| | | // cbCity.EditValue = model.City; |
| | | // cbDist.EditValue = model.Dist; |
| | | this.cbPropertyType.EditValue = model.PropertyType; |
| | | } |
| | | } |
| | | } |
| | |
| | | barBtnUpdateUseStatus.Id = 24; |
| | | barBtnUpdateUseStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnUpdateUseStatus.ImageOptions.SvgImage"); |
| | | barBtnUpdateUseStatus.Name = "barBtnUpdateUseStatus"; |
| | | barBtnUpdateUseStatus.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; |
| | | barBtnUpdateUseStatus.ItemClick += barBtnUpdateUseStatus_ItemClick; |
| | | // |
| | | // barCekSearch |
| | | // |
| | |
| | | using DevExpress.DataProcessing.InMemoryDataProcessor; |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraEditors; |
| | | using HStation.WinFrmUI; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | |
| | | this.placeViewModelBindingSource.ResetBindings(false); |
| | | this.gridView1.FocusedRowHandle = nextHandle; |
| | | } |
| | | |
| | | private void barBtnUpdateUseStatus_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var vm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (vm == null) |
| | | { |
| | | return; |
| | | } |
| | | var dlg = new SetUseStatusDlg(); |
| | | dlg.SetBindingData((Yw.Model.eUseStatus)vm.UseStatus); |
| | | dlg.ReloadDataEvent += async (status) => |
| | | { |
| | | var bol = await BLLFactory<PBS.BLL.Place>.Instance.UpdateUseStatus(vm.ID, status); |
| | | if (bol) |
| | | { |
| | | vm.UseStatus = (Yw.Vmo.eUseStatus)(int)status; |
| | | this.gridView1.RefreshRow(this.gridView1.FocusedRowHandle); |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | |
| | | textEditWaterModel = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | imageComboBoxConnectionType = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | textEditConnectionAddress = new DevExpress.XtraEditors.TextEdit(); |
| | | textEditMaxHeight = new DevExpress.XtraEditors.TextEdit(); |
| | | layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | txtFlooritem = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | comboBoxCompletePlantitem = new DevExpress.XtraLayout.LayoutControlItem(); |
| | |
| | | txtWaterPressureitem = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); |
| | | textEditMaxHeight = new DevExpress.XtraEditors.TextEdit(); |
| | | layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); |
| | | ((System.ComponentModel.ISupportInitialize)FacilitiesWizardFormlayoutControl1ConvertedLayout).BeginInit(); |
| | | FacilitiesWizardFormlayoutControl1ConvertedLayout.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)txtEditPlace.Properties).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)textEditWaterModel.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxConnectionType.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditConnectionAddress.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditMaxHeight.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtFlooritem).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)comboBoxCompletePlantitem).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)txtWaterPressureitem).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditMaxHeight.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem10).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // FacilitiesWizardFormlayoutControl1ConvertedLayout |
| | |
| | | textEditConnectionAddress.StyleController = FacilitiesWizardFormlayoutControl1ConvertedLayout; |
| | | textEditConnectionAddress.TabIndex = 13; |
| | | // |
| | | // textEditMaxHeight |
| | | // |
| | | textEditMaxHeight.Location = new Point(592, 252); |
| | | textEditMaxHeight.MinimumSize = new Size(0, 36); |
| | | textEditMaxHeight.Name = "textEditMaxHeight"; |
| | | textEditMaxHeight.Size = new Size(285, 36); |
| | | textEditMaxHeight.StyleController = FacilitiesWizardFormlayoutControl1ConvertedLayout; |
| | | textEditMaxHeight.TabIndex = 14; |
| | | // |
| | | // layoutControlGroup1 |
| | | // |
| | | layoutControlGroup1.AppearanceItemCaption.Options.UseTextOptions = true; |
| | |
| | | layoutControlItem9.Text = "è¿æ¥å°å:"; |
| | | layoutControlItem9.TextSize = new Size(134, 18); |
| | | // |
| | | // dxErrorProvider1 |
| | | // |
| | | dxErrorProvider1.ContainerControl = this; |
| | | // |
| | | // textEditMaxHeight |
| | | // |
| | | textEditMaxHeight.Location = new Point(592, 252); |
| | | textEditMaxHeight.MinimumSize = new Size(0, 36); |
| | | textEditMaxHeight.Name = "textEditMaxHeight"; |
| | | textEditMaxHeight.Size = new Size(285, 36); |
| | | textEditMaxHeight.StyleController = FacilitiesWizardFormlayoutControl1ConvertedLayout; |
| | | textEditMaxHeight.TabIndex = 14; |
| | | // |
| | | // layoutControlItem10 |
| | | // |
| | | layoutControlItem10.Control = textEditMaxHeight; |
| | |
| | | layoutControlItem10.Size = new Size(435, 136); |
| | | layoutControlItem10.Text = "æé«æ¥¼å±æ é«:"; |
| | | layoutControlItem10.TextSize = new Size(134, 18); |
| | | // |
| | | // dxErrorProvider1 |
| | | // |
| | | dxErrorProvider1.ContainerControl = this; |
| | | // |
| | | // FacilitiesCtrl |
| | | // |
| | |
| | | ((System.ComponentModel.ISupportInitialize)textEditWaterModel.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)imageComboBoxConnectionType.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditConnectionAddress.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditMaxHeight.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)txtFlooritem).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)comboBoxCompletePlantitem).EndInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)txtWaterPressureitem).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem9).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)textEditMaxHeight.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem10).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | var list = await new PBS.BLL.Place().GetAll(); |
| | | this.treeListLookUpEdit1TreeList.DataSource = list; |
| | | this.imageComboBoxConnectionType.Properties.AddEnum(typeof(PBS.eConnectionType)); |
| | | this.imageComboBoxConnectionType.SelectedIndex = 1; |
| | | } |
| | | |
| | | public void SetData(Vmo.FacilityVmo model) |
| | |
| | | barBtnUpdateUseStatus.Id = 24; |
| | | barBtnUpdateUseStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnUpdateUseStatus.ImageOptions.SvgImage"); |
| | | barBtnUpdateUseStatus.Name = "barBtnUpdateUseStatus"; |
| | | barBtnUpdateUseStatus.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; |
| | | barBtnUpdateUseStatus.ItemClick += barBtnUpdateUseStatus_ItemClick; |
| | | // |
| | | // barCekSearch |
| | | // |
| | |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraEditors; |
| | | using HStation.WinFrmUI; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace PBS.WinFrmUI |
| | |
| | | this.facilityViewModelBindingSource.ResetBindings(false); |
| | | this.gridView1.FocusedRowHandle = nextHandle; |
| | | } |
| | | |
| | | private void barBtnUpdateUseStatus_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var vm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (vm == null) |
| | | { |
| | | return; |
| | | } |
| | | var dlg = new SetUseStatusDlg(); |
| | | dlg.SetBindingData((Yw.Model.eUseStatus)vm.UseStatus); |
| | | dlg.ReloadDataEvent += async (status) => |
| | | { |
| | | var bol = await new PBS.BLL.Facility().UpdateUseStatus(vm.ID, status); |
| | | if (bol) |
| | | { |
| | | vm.UseStatus = (Yw.Vmo.eUseStatus)(int)status; |
| | | this.gridView1.RefreshRow(this.gridView1.FocusedRowHandle); |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 25; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 5; |
| | | colDescription.Width = 94; |
| | | // |
| | | // gridColumn1 |
| | |
| | | <ProjectReference Include="..\..\BLL\HStation.BLL.Assets.Core\HStation.BLL.Assets.Core.csproj" /> |
| | | <ProjectReference Include="..\..\BLL\PBS.BLL\PBS.BLL.csproj" /> |
| | | <ProjectReference Include="..\..\BLL\Yw.BLL.Division.Core\Yw.BLL.Division.Core.csproj" /> |
| | | <ProjectReference Include="..\HStation.WinFrmUI.Core\HStation.WinFrmUI.Core.csproj" /> |
| | | <ProjectReference Include="..\PBS.WinFrmUI.WE\PBS.WinFrmUI.WE.csproj" /> |
| | | <ProjectReference Include="..\Yw.WinFrmUI.Core\Yw.WinFrmUI.Core.csproj" /> |
| | | <ProjectReference Include="..\Yw.WinFrmUI.Map.Core\Yw.WinFrmUI.Map.Core.csproj" /> |
| | |
| | | <Compile Update="00-home\00-core\HomePbsProjectPage.cs"> |
| | | <SubType>UserControl</SubType> |
| | | </Compile> |
| | | <Compile Update="00-home\01-prjlist\XtraUserControl1.cs"> |
| | | <SubType>UserControl</SubType> |
| | | </Compile> |
| | | <Compile Update="00-home\02-map\MapViewProjectListContainer.cs"> |
| | | <SubType>UserControl</SubType> |
| | | </Compile> |
| | |
| | | }); |
| | | labelMarker.objInfo = x; |
| | | labelMarker.on("click", function (e) { |
| | | //setSelectProjectStyle(e.target); |
| | | setSelectProjectStyle(e.target); |
| | | //_callBackObj.SelectProject(e.target.objInfo.Id); |
| | | }); |
| | | labelMarkers.push(labelMarker); |
| | |
| | | ); |
| | | info.push(overlay.objInfo.Name); |
| | | info.push("</label>"); |
| | | info.push("<p class='input-item'>ç¼å·ï¼"); |
| | | info.push(overlay.objInfo.NO); |
| | | info.push("</p>"); |
| | | info.push("<p class='input-item'>客æ·åç§°ï¼"); |
| | | info.push(overlay.objInfo.Customer); |
| | | /* info.push("<p class='input-item'>ç¼å·ï¼"); |
| | | info.push(overlay.objInfo.NO); |
| | | info.push("</p>");*/ |
| | | info.push("<p class='input-item'>详ç»å°åï¼"); |
| | | info.push(overlay.objInfo.Address); |
| | | info.push("</p>"); |
| | | info.push("</div>"); |
| | | infoWindow = new AMap.InfoWindow({ |