@temp = ShowSearchBox("ProductSearch","INFOMATION",ikTextButton1.CValue); if( @temp == "" ) return; ikTextButton1.CValue = @temp; ikTextButton2.CValue = ikTextButton1.CValue; @temp = ShowSearchBox("ProductSearch","INFOMATION",ikTextButton2.CValue); if( @temp == "" ) return; ikTextButton2.CValue = @temp; NewInstance(); UpdateForm(false, "ikComboBoxEx1"); Search("SearchType"); UpdateForm(true, "ikComboBoxEx1"); NewInstance(); UpdateForm(false, "ikComboBoxEx2"); Search("SearchType"); UpdateForm(true, "ikComboBoxEx2"); PrintReport(dgProduct.CurrentView); Empty(); NewInstance(); @StartProductNo =DBNull(); @EndProductNo =DBNull(); @StartModifyTypeSettings =DBNull(); @EndModifyTypeSettings =DBNull(); @StartDate =DBNull(); @EndDate =DBNull(); if(!Equals(ikTextButton1.CValue,"")) @StartProductNo= ikTextButton1.CValue; if(!Equals(ikTextButton2.CValue,"")) @EndProductNo= ikTextButton2.CValue; if(!Equals(ikComboBoxEx1.Text,"")) @StartModifyTypeSettings= ikComboBoxEx1.Text; if(!Equals(ikComboBoxEx2.Text,"")) @EndModifyTypeSettings= ikComboBoxEx2.Text; if(ikDateTimePicker1.Checked) @StartDate= ikDateTimePicker1.Value; if(ikDateTimePicker2.Checked) @EndDate= ikDateTimePicker2.Value; Search("SearchReceivales",@StartProductNo,@EndProductNo,@StartModifyTypeSettings,@EndModifyTypeSettings, @StartDate,@EndDate); if(Equals(@StartProductNo,DBNull())) @StartProductNo = ""; if(Equals(@EndProductNo,DBNull())) @EndProductNo = ""; if(Equals(@EndModifyTypeSettings,DBNull())) @EndModifyTypeSettings = ""; if(Equals(@StartModifyTypeSettings,DBNull())) @StartModifyTypeSettings = ""; #UI.StartNo_Product = @StartProductNo; #UI.EndNo_Product = @EndProductNo; #UI.StartModName_ModifyTypeSettings = @StartModifyTypeSettings; #UI.EndModName_ModifyTypeSettings = @EndModifyTypeSettings; #UI.StartDate = @StartDate; #UI.EndDate =@EndDate; ; ; Empty(); NewInstance(); @StartProductNo = DBNull(); @EndProductNo = DBNull(); @StartModifyTypeSettings = DBNull(); @EndModifyTypeSettings = DBNull(); @StartDate =DBNull(); @EndDate =DBNull(); if(!Equals(ikTextButton1.CValue,"")) @StartProductNo= ikTextButton1.CValue; if(!Equals(ikTextButton2.CValue,"")) @EndProductNo= ikTextButton2.CValue; if(!Equals(ikComboBoxEx1.Text,"")) @StartModifyTypeSettings= ikComboBoxEx1.Text; if(!Equals(ikComboBoxEx2.Text,"")) @EndModifyTypeSettings= ikComboBoxEx2.Text; if(ikDateTimePicker1.Checked) @StartDate= ikDateTimePicker1.Value; if(ikDateTimePicker2.Checked) @EndDate= ikDateTimePicker2.Value; Search("SearchReceivales",@StartProductNo,@EndProductNo,@StartModifyTypeSettings,@EndModifyTypeSettings, @StartDate,@EndDate); if(Equals(@StartProductNo,DBNull())) @StartProductNo = ""; if(Equals(@EndProductNo,DBNull())) @EndProductNo = ""; if(Equals(@EndModifyTypeSettings,DBNull())) @EndModifyTypeSettings = ""; if(Equals(@StartModifyTypeSettings,DBNull())) @StartModifyTypeSettings = ""; #UI.StartNo_Product = @StartProductNo; #UI.EndNo_Product = @EndProductNo; #UI.StartModName_ModifyTypeSettings = @StartModifyTypeSettings; #UI.EndModName_ModifyTypeSettings = @EndModifyTypeSettings; #UI.StartDate = @StartDate; #UI.EndDate =@EndDate; Empty(); ikTextButton1.CValue=""; ikTextButton2.CValue=""; ikComboBoxEx1.SelectedName=""; ikComboBoxEx2.SelectedName=""; ikDateTimePicker1.Checked=False; ikDateTimePicker2.Checked=False;