; ; @Temp = ShowSearchBox("ProductSearch","INFOMATION",tbNo.CValue); if(@Temp != "") tbNo.CValue = @Temp; Empty(); @No_Product=DBNull(); @Name_Product=DBNull(); if(tbNo.CValue!="") @No_Product=tbNo.CValue; if(txtName.CValue!="") @Name_Product=txtName.CValue; @Unit_Product=cbUnit.Text; @Type_Product=cbType.Text; Search("SearchProducts",@No_Product,@Name_Product,@Unit_Product,@Type_Product); if(RowCount("#Product")>0) { btnClear.Enabled=true; btnOK.Enabled=true; } else { btnClear.Enabled=false; btnOK.Enabled=false; } Empty(); btnClear.Enabled=false; btnOK.Enabled=false; ikDataGridEx1.SetDefaultSelectedColoumn("Price_Product",txtPrice.CValue, false); ikDataGridEx1.SetDefaultSelectedColoumn("LowSalePrice_Product",txtLowSalePrice.CValue,false); Update();
SuspendLayout(); cbType.Items.Add("全部"); cbUnit.Items.Add("全部"); for(@i=0;@i<RowCount("#Type");@i++) { SetPosition("#Type",@i); cbType.Items.Add(#Type.Name_TypeDef); } for(@i=0;@i<RowCount("#Unit");@i++) { SetPosition("#Unit",@i); cbUnit.Items.Add(#Unit.Name_TypeDef); } cbType.Text="全部"; cbUnit.Text="全部"; btnClear.Enabled=false; btnOK.Enabled=false; ResumeLayout();