public void UpdateConsignToAccountLogStatus(int sysNo, ConsignToAccountLogStatus newStatus) { DataCommand command = DataCommandManager.GetDataCommand("UpdateConsignToAccountLogStatus"); command.SetParameterValue("@SysNo", sysNo); command.SetParameterValue("@Status", (int)newStatus); command.ExecuteNonQuery(); }
private string GetConsignToAccountLogChar(ConsignToAccountLogStatus status) { switch (status) { case ConsignToAccountLogStatus.Origin: return("A"); case ConsignToAccountLogStatus.SystemCreated: return("S"); case ConsignToAccountLogStatus.ManualCreated: return("C"); case ConsignToAccountLogStatus.Settled: return("F"); default: return(null); } }