Exemplo n.º 1
0
        /// <summary>
        /// 上一位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_Pre_SimpleButton_Click(object sender, EventArgs e)
        {
            var index = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetFocusedDataSourceRowIndex();

            if (index == 0)
            {
                return;
            }
            ReviseList(index - 1);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 下一位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_Next_SimpleButton_Click(object sender, EventArgs e)
        {
            var count = propertyList.Count;
            var index = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetFocusedDataSourceRowIndex();

            if (count - 1 == index)
            {
                return;
            }
            ReviseList(index + 1);
        }
Exemplo n.º 3
0
        private void MaterialProperty_Modify_BarButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var modifyProperty = new AddMaterialProperty();

            modifyProperty.Tag = "Modify";
            var id       = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetFocusedRowCellValue("id");
            var property = propertyService.GetAllMaterialProperty().Find(p => p.id == Convert.ToInt32(id));

            modifyProperty.baseProperty = property;
            modifyProperty.ShowDialog();
        }
Exemplo n.º 4
0
        //修改物料属性
        private void PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_ModifyProperty_SimpleButton_Click(object sender, EventArgs e)
        {
            var modifyProperty = new AddMaterialProperty();

            modifyProperty.Tag  = "Modify";
            modifyProperty.Text = "修改物料属性";
            var id       = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetFocusedRowCellValue("id");
            var property = propertyService.GetAllMaterialProperty().Find(p => p.id == Convert.ToInt32(id));

            modifyProperty.baseProperty = property;
            modifyProperty.ShowDialog();
        }
Exemplo n.º 5
0
        private void GetCheckDataList()
        {
            var rowCount = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.RowCount;

            for (int i = 0; i < rowCount; i++)
            {
                var value    = PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetRowCellValue(i, "checkStatus").ToString();
                var id       = Convert.ToInt32(PartsMange_MaterialPropertyBuild_MaterialPropertyBuild_MaterialPropertyList_GridView.GetRowCellValue(i, "id").ToString());
                var property = new MaterialBaseProperty();
                property.id = id;
                if (value == "True")
                {
                    checkPropertyList.Add(property);
                }
            }
        }