private void Awake() { gridExtension = GetComponent <GridExtension>(); pathfindController = GetComponent <PathfindController>(); gridSavingController = GetComponent <GridSavingController>(); mainCamera = Camera.main; pathFindDone = false; }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GetDescriptionColumn(_columnSrNo, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columncerno, false)); GridExtension.FormatToUpperCaseTextBox(mapGrid, _columncerno.ToLowerCaseColumnName()); mapGrid.Columns.Add(GetListColumn(_columntype, CostingRate.CostingItems.Where(x => x.ProductCategory == ProductCategory.Labour).Select(x => x.Particulars).Distinct().ToList(), null)); mapGrid.Columns.Add(GetDescriptionColumn(_columnjewelnumber, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columndesignno, false)); GridExtension.FormatToUpperCaseTextBox(mapGrid, _columndesignno.ToLowerCaseColumnName()); mapGrid.Columns.Add(GetListColumn(_columnmetaltype, CostingRate.CostingItems.Where(x => x.ProductCategory == ProductCategory.Metal).Select(x => x.Particulars).Distinct().ToList(), null)); mapGrid.Columns.Add(GetDescriptionColumn(_columnmetalcolor, false)); GridExtension.FormatToUpperCaseTextBox(mapGrid, _columnmetalcolor.ToLowerCaseColumnName()); mapGrid.Columns.Add(GetDescriptionColumn(_columngrwt, false)); mapGrid.Columns.Add(GetDescriptionColumn(_columnntwt, true)); // total dia wt(e22-i22/5) mapGrid.Columns.Add(GetDescriptionColumn(_columngamt, true)); // costing slab for gold rate date wise for client wise var CSStoneItmes = new List <String> { "None" }; CSStoneItmes.AddRange(CostingRate.CostingItems.Where(x => x.ProductCategory == ProductCategory.ColorStone).Select(x => x.Particulars).Distinct()); mapGrid.Columns.Add(GetListColumn(_columncsstonetype, CSStoneItmes, null)); mapGrid.Columns.Add(GetDescriptionColumn(_columncstonepcs, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columncstonewt, true)); var StoneItmes = new List <String> { "None" }; StoneItmes.AddRange(CostingRate.CostingItems.Where(x => x.ProductCategory == ProductCategory.Stone).Select(x => x.Particulars).Distinct()); mapGrid.Columns.Add(GetListColumn(_columnstonetype, StoneItmes, null)); mapGrid.Columns.Add(GetDescriptionColumn(_columndiapcs, true)); //to get total dia pcs it requires costing sheet as bifercation of total pcs according to there sieve size and it should be date wise and client wise mapGrid.Columns.Add(GetDescriptionColumn(_columndiawt, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columnsievsz, true)); //PICK UP FROM COSTING CHART mapGrid.Columns.Add(GetDescriptionColumn(_columndiapcsdetails, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columndiawtdetails, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columnavrdia, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columndiapr, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columndiaval, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columndiavalsum, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columnlabr, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columncert, true)); mapGrid.Columns.Add(GetDescriptionColumn(_columnstamp, false)); mapGrid.Columns.Add(GetDescriptionColumn(_columnamount, true)); }
private void CreateSpiral() { _spiralPoints = null; _spiralPoints = new Point3[25]; for (int i = 0; i < _spiralPoints.Length; i++) { _spiralPoints[i] = GridExtension.GridSpiralP3(i); } }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndate, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncustomrecode, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columninvoiceno, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnstatus, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnamount, true)); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columnview)); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columnactive)); mapGrid.CellContentClick += dgvJewel_CellContentClick; }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntrandate, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntrantpe, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntranparty, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntranqty, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnnetamount, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnrefno, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columninvioceno, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columninviocepmterm, true)); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columninviocesummary)); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columninviocedetail)); mapGrid.CellContentClick += dgvJewel_CellContentClick; }
private void Start() { GridExtension gridExtension = FindObjectOfType <GridExtension>(); Vector2 center = new Vector2(gridExtension.gridSize.x / 2.0f * gridExtension.cellSize.x, gridExtension.gridSize.y / 2.0f * gridExtension.cellSize.y); worldBounds = new Bounds { min = Vector2.zero, max = new Vector2(gridExtension.gridSize.x * gridExtension.cellSize.x, gridExtension.gridSize.y * gridExtension.cellSize.y) }; transform.position = new Vector3(center.x, center.y, transform.position.z); }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GridExtension.GetCheckBxColumn(_columnselectchk, true)); mapGrid.Columns.Add(GridExtension.GetImageColumn(_columnimage)); GridExtension.FormatImageCell(mapGrid, _columnimage.ToLowerCaseColumnName()); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columndetails)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnjewelnumber, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndesigncode, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntotalwt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnmetalweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnmetalcolor, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnstoneweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnstonepcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncstoneweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncstonepcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnstate, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntrno, true, true)); }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GridExtension.GetImageColumn(_columnimage)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntype, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnjewelnumber, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndesigncode, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columngoldkt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntotalwt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnmetalweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndiapcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndiamondweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncolpcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncolwt, true)); mapGrid.Columns.Add(GridExtension.GetButtonColumn(_columndgRemoveItem)); mapGrid.CellContentClick += dgvJewel_CellContentClick; }
public void ConfigDataGridView(DataGridView mapGrid) { mapGrid.Columns.Add(GridExtension.GetCheckBxColumn(_columnselectchk)); mapGrid.Columns.Add(GridExtension.GetImageColumn(_columnimage)); GridExtension.FormatImageCell(mapGrid, _columnimage.ToLowerCaseColumnName()); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntype, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnjewelnumber, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndesigncode, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columngoldkt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntotalwt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columnmetalweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndiamondweight, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columndiapcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncolwt, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columncolpcs, true)); mapGrid.Columns.Add(GridExtension.GetDescriptionColumn(_columntotalAmount, true)); }
private void Awake() { gridExtension = GetComponent <GridExtension>(); }
private void Awake() { gridExtension = GetComponent <GridExtension>(); pathfindController = GetComponent <PathfindController>(); }
public HtmlString Grid <TValue, TSearch>(string gridName, string url = null, string pagesCountUrl = null, string areaName = null, bool showEdit = true, bool showDelete = true, bool showPaging = true, bool initiateGrid = true, string parentObjectName = null, AwroGridPagingType pagingType = AwroGridPagingType.ServerSide, Dictionary <string, bool> showIfParameters = null) { return(GridExtension.Grid <TModel, TValue>(_html, gridName, url, pagesCountUrl, areaName, showEdit, showDelete, showPaging, initiateGrid, parentObjectName, pagingType, showIfParameters)); }