public static bool RecordPrintLog(string cGuid) { using (var cmd = new SqlCommand(@"INSERT INTO BLogPrint (cGuid,cOperator) Values(@cGuid,@cOperator)")) { cmd.Parameters.AddWithValue("@cGuid", cGuid); cmd.Parameters.AddWithValue("@cOperator", BaseStructure.LoginName); var wf = new WmsFunction(BaseStructure.WmsCon); return(wf.ExecSqlCmd(cmd)); } }
public static bool RecordLogAction(string cFunction, string cDescription) { using (var logCmd = new SqlCommand(@"AddLogAction")) { logCmd.CommandType = CommandType.StoredProcedure; logCmd.Parameters.AddWithValue("@cFunction", cFunction); logCmd.Parameters.AddWithValue("@cDescription", cDescription); var wf = new WmsFunction(BaseStructure.WmsCon); return(wf.ExecSqlCmd(logCmd)); } }