/// <summary> /// 根据公司编码获取该编码是否已启用 /// </summary> /// <param name="strCompanyCD">公司编码</param> /// <returns>false停用,true启用</returns> public static bool GetBatchStatus(string strCompanyCD) { bool isUsing = false; DataTable dt = BatchNoRuleSetDBHelper.GetBatchNoByCompanyCD(strCompanyCD); if (dt == null || dt.Rows.Count <= 0) { return(isUsing); } else { if (dt.Rows[0]["UsedStatus"].ToString() == "1") { return(true); } else { return(false); } } }
/// <summary> /// 根据公司编码获取批次规则 /// </summary> /// <param name="strCompanyCD">公司编码</param> /// <returns>datatable 批次规则信息</returns> public static DataTable GetBatchRuleInfo(string strCompanyCD) { return(BatchNoRuleSetDBHelper.GetBatchNoByCompanyCD(strCompanyCD)); }