; ; ShowSearchBox("BillSearch","NODEPOT", "tbNo",tbNo.CValue); BeginUnAudit(); #IndentBillOnNet.ID_Assessor = DBNull(); #IndentBillOnNet.Name_Assessor = ""; #IndentBillOnNet.Disable_IndentBillOnNet = true; #IndentBillOnNet.DeleteUser_IndentBillOnNet = GetLoginUserID(); #IndentBillOnNet.DeleteUserName = GetCurrentUser(); #IndentBillOnNet.DeleteDate_IndentBillOnNet = DateTimeNow(); UnAudit(); ChangeMode("View"); EndUnAudit(); BeginUnAudit(); #IndentBillOnNet.Disable_IndentBillOnNet=true; #IndentBillOnNet.DeleteUser_IndentBillOnNet = GetLoginUserID(); #IndentBillOnNet.DeleteUserName = GetCurrentUser(); #IndentBillOnNet.DeleteDate_IndentBillOnNet = DateTimeNow(); UnAudit(); ChangeMode("View"); EndUnAudit(); if (Search("SearchIndentBillOnNetFirst",GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) { ChangeMode("View"); } if (Search("SearchIndentBillOnNetPrevious", tbNo.CValue,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) { ChangeMode("View"); } if (Search("SearchIndentBillOnNetNext", tbNo.CValue,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) { ChangeMode("View"); } if (Search("SearchIndentBillOnNetLast",GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) { ChangeMode("View"); } ChangeMode("Search"); ShowPrintBox("BillSearch",#IndentBillOnNet.No_IndentBillOnNet,#IndentBillOnNet.No_IndentBillOnNet); BeginUnAudit(); UnAudit(); ChangeMode("View"); EndUnAudit(); ; ; ; ChangeMode("Modify"); if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID()); } if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Disable_IndentBillOnNet = 0 and Customer.ID_Creator='{0}' ",GetLoginUserID()); }
Empty(); NewInstance(); btnDelete.Enabled=false; toolBar.EnableAudit = false; toolBar.EnableExport =false; toolBar.EnableSubmit = false; toolBar.EnableModify = false; txtComment.ReadOnly =true; tbCustomerNo.ReadOnly =true; #IndentBillOnNet.LastModDate_IndentBillOnNet = DBNull(); #IndentBillOnNet.DeleteDate_IndentBillOnNet = DBNull(); UpdateForm(true,""); dgProduct.ReadOnly = true; if(Equals(#IndentBillOnNet.ID_Assessor, DBNull())) { if(#IndentBillOnNet.Disable_IndentBillOnNet==false) { toolBar.EnableAudit = GetRight(@Title,"审核"); toolBar.EnableModify = GetRight(@Title,"修改"); } else { toolBar.EnableAudit = false; toolBar.EnableModify = false; } btnDelete.Enabled = false; } else { toolBar.EnableAudit = false; btnDelete.Enabled = GetRight(@Title,"删除"); toolBar.EnableModify = false; } toolBar.EnablePrint = GetRight(@Title,"打印"); toolBar.EnableExport =true; toolBar.EnableSubmit = false; txtComment.ReadOnly =true; UpdateForm(true, ""); tbNo.Focus(); txtBillComment.ReadOnly = false; dgProduct.ReadOnly = false; toolBar.EnableSubmit = GetRight(@Title,"修改"); toolBar.EnableModify = false; toolBar.EnableDelete = false; toolBar.EnableAudit = false; toolBar.EnableExport = false; #IndentBillOnNet.LastModUser_IndentBillOnNet = GetLoginUserID(); #IndentBillOnNet.LastModUserName = GetCurrentUser(); #IndentBillOnNet.LastModDate_IndentBillOnNet = DateTimeNow(); UpdateForm(true, ""); dgProduct.ReadOnly = true; #IndentBillOnNet.LastModDate_IndentBillOnNet = DateTimeNow(); txtBillComment.ReadOnly = true; #IndentBillOnNet.FeedbackComment_IndentBillOnNet = txtBillComment.CValue; Update(); ChangeMode("View"); BeginAudit(); #IndentBillOnNet.ID_Assessor = GetLoginUserID(); #IndentBillOnNet.Name_Assessor = GetCurrentUser(); #IndentBillOnNet.AssessDate_IndentBillOnNet = DateTimeNow(); Audit(); ChangeMode("View"); EndAudit();