private void Btn_allApply_Click(object sender, EventArgs e)
        {
            var materialList = new List <string>();
            var ds           = serviceClient.SelectMaterial("", MesService.MaterialStockState.PUT_IN_STOCK);

            foreach (DataRow dataRow in ds.Tables[0].Rows)
            {
                var materialCode = dataRow[0].ToString();
                if (materialCode != "")
                {
                    materialList.Add(materialCode);
                }
            }

            CommitQuanlityData(materialList, MaterialStateMentType.AllMaterial);
        }
        private void InitMaterialRID()
        {
            var dt = serviceClient.SelectMaterial("", MesService.MaterialStockState.PUT_IN_STOCK).Tables[0];

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    var materialCode = dt.Rows[i][0].ToString();
                    AnalysisMaterialCode analysisMaterialCode = AnalysisMaterialCode.GetMaterialDetail(materialCode);
                    var materialRID = analysisMaterialCode.MaterialRID;
                    this.tool_stock_queryCondition.Items.Add(materialRID);
                }
                this.tool_stock_queryCondition.AutoCompleteSource = AutoCompleteSource.ListItems;
                this.tool_stock_queryCondition.AutoCompleteMode   = AutoCompleteMode.Suggest;
                this.tool_bind_queryCondition.AutoCompleteSource  = AutoCompleteSource.ListItems;
                this.tool_bind_queryCondition.AutoCompleteMode    = AutoCompleteMode.Suggest;
            }
        }