/// <summary> /// 更新 /// </summary> /// <param name="dataSet"></param> public void UpdateEntity(string sortID, string areaCode) { SqlCreate sqlCreate = new SqlCreate("AS_BI_AREA", SqlType.UPDATE); sqlCreate.Append("SORTID", sortID); sqlCreate.AppendWhereQuote("AREACODE", areaCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
public void UpdateEntity(string lineCode, string status) { SqlCreate sqlCreate = new SqlCreate("AS_BI_LINEINFO", SqlType.UPDATE); sqlCreate.AppendQuote("STATUS", status); sqlCreate.AppendWhereQuote("LINECODE", lineCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
public void UpdateEntity(string departmentID, string departmentName, string remark) { SqlCreate sqlCreate = new SqlCreate("AS_BI_DEPARTMENT", SqlType.UPDATE); sqlCreate.AppendQuote("DEPARTMENTNAME", departmentName); sqlCreate.AppendQuote("REMARK", remark); sqlCreate.AppendWhereQuote("DEPARTMENTID", departmentID); ExecuteNonQuery(sqlCreate.GetSQL()); }
/// <summary> /// ¸üР/// </summary> /// <param name="dataSet"></param> public void UpdateEntity(string sortID, string lineCode, string routeCode) { SqlCreate sqlCreate = new SqlCreate("AS_BI_ROUTE", SqlType.UPDATE); sqlCreate.Append("SORTID", sortID); sqlCreate.AppendQuote("LINECODE", lineCode); sqlCreate.AppendWhereQuote("ROUTECODE", routeCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
public void UpdateEntity(string cigaretteCode, string cigaretteName, string isAbnormity, string barcode) { SqlCreate sqlCreate = new SqlCreate("AS_BI_CIGARETTE", SqlType.UPDATE); sqlCreate.AppendQuote("CIGARETTENAME", cigaretteName); sqlCreate.AppendQuote("ISABNORMITY", isAbnormity); sqlCreate.AppendQuote("BARCODE", barcode); sqlCreate.AppendWhereQuote("CIGARETTECODE", cigaretteCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
public void UpdateEntity(Dictionary <string, string> parameters) { foreach (string key in parameters.Keys) { SqlCreate sqlCreate = new SqlCreate("AS_SYS_PARAMETER", SqlType.UPDATE); sqlCreate.AppendQuote("PARAMETERVALUE", parameters[key]); sqlCreate.AppendWhereQuote("PARAMETERNAME", key); ExecuteNonQuery(sqlCreate.GetSQL()); } }
public void UpdateEntity(string employeeCode, string employeeName, string departmentID, string status, string remark) { SqlCreate sqlCreate = new SqlCreate("AS_BI_EMPLOYEE", SqlType.UPDATE); sqlCreate.AppendQuote("EMPLOYEECODE", employeeCode); sqlCreate.AppendQuote("EMPLOYEENAME", employeeName); sqlCreate.AppendQuote("DEPARTMENTID", departmentID); sqlCreate.AppendQuote("STATUS", status); sqlCreate.AppendQuote("REMARK", remark); sqlCreate.AppendWhereQuote("EMPLOYEECODE", employeeCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
/// <summary> /// 2010-11-21 /// </summary> /// <param name="channelTable"></param> public void UpdateChannel(DataTable channelTable) { foreach (DataRow row in channelTable.Rows) { SqlCreate sqlCreate = new SqlCreate("AS_BI_STOCKCHANNEL", SqlType.UPDATE); sqlCreate.AppendQuote("CIGARETTECODE", row["CIGARETTECODE"]); sqlCreate.AppendQuote("CIGARETTENAME", row["CIGARETTENAME"]); sqlCreate.Append("QUANTITY", row["QUANTITY"]); sqlCreate.AppendWhereQuote("CHANNELCODE", row["CHANNELCODE"]); ExecuteNonQuery(sqlCreate.GetSQL()); } }
public void UpdateEntity(string channelCode, string cigaretteCode, string cigaretteName, int quantity, string status, string isStockIn) { SqlCreate sqlCreate = new SqlCreate("AS_BI_STOCKCHANNEL", SqlType.UPDATE); sqlCreate.AppendQuote("CIGARETTECODE", cigaretteCode.Trim()); sqlCreate.AppendQuote("CIGARETTENAME", cigaretteName.Trim()); sqlCreate.AppendQuote("REMAINQUANTITY", quantity); sqlCreate.AppendQuote("STATUS", status); sqlCreate.AppendQuote("ISSTOCKIN", isStockIn); sqlCreate.AppendWhereQuote("CHANNELCODE", channelCode); ExecuteNonQuery(sqlCreate.GetSQL()); }
public void UpdateEntity(DataSet dataSet) { foreach (DataRow dataRow in dataSet.Tables["AS_SYS_BARCODE"].Rows) { if (dataRow.RowState == DataRowState.Modified) { SqlCreate sqlCreate = new SqlCreate("AS_BI_CHANNEL", SqlType.UPDATE); sqlCreate.AppendQuote("CIGARETTECODE", dataRow["CIGARETTECODE"]); sqlCreate.AppendWhereQuote("CHANNELID", dataRow["CHANNELID", DataRowVersion.Original]); ExecuteNonQuery(sqlCreate.GetSQL()); } } }
internal void UpdateEntity(string channelID, string cigaretteCode, string cigaretteName, string status) { SqlCreate sqlCreate = new SqlCreate("AS_BI_CHANNEL", SqlType.UPDATE); sqlCreate.AppendQuote("CIGARETTECODE", cigaretteCode.Trim()); sqlCreate.AppendQuote("CIGARETTENAME", cigaretteName.Trim()); sqlCreate.AppendQuote("STATUS", status); sqlCreate.AppendWhereQuote("CHANNELID", channelID); ExecuteNonQuery(sqlCreate.GetSQL()); string sql = "INSERT INTO AS_SC_BALANCE_OUT" + " SELECT GETDATE(),LINECODE,CHANNELCODE,CHANNELNAME,CIGARETTECODE, CIGARETTENAME, " + " SUM(QUANTITY) AS QUANTITY,0" + " FROM AS_SC_BALANCE" + " WHERE CHANNELID = '{0}'" + " GROUP BY LINECODE,CHANNELCODE,CHANNELNAME,CIGARETTECODE, CIGARETTENAME" + " HAVING ISNULL(SUM(QUANTITY),0) > 0 "; ExecuteNonQuery(string.Format(sql, channelID)); sql = "DELETE FROM AS_SC_BALANCE WHERE CHANNELID = '{0}'"; ExecuteNonQuery(string.Format(sql, channelID)); }