예제 #1
0
 static void InsertCustomEmailFieldItem(int departmentId, CustomEmailFieldItem customEmailFieldItem)
 {
     UpdateByQuery("INSERT INTO CustomEmailFields(DepartmentId,FieldType, IsChecked, CustomFieldId) VALUES(" + departmentId + "," + (int)customEmailFieldItem.Field + "," + (customEmailFieldItem.IsChecked ? "1" : "0") + "," + (customEmailFieldItem.CustomFieldValue > 0?customEmailFieldItem.CustomFieldValue.ToString():"NULL") + ")");
 }
예제 #2
0
 static void InsertCustomEmailFieldItem(int departmentId, CustomEmailFieldItem customEmailFieldItem)
 {
     UpdateByQuery("INSERT INTO CustomEmailFields(DepartmentId,FieldType, IsChecked, CustomFieldId) VALUES(" + departmentId + "," + (int)customEmailFieldItem.Field + "," + (customEmailFieldItem.IsChecked ? "1" : "0") + "," + (customEmailFieldItem.CustomFieldValue>0?customEmailFieldItem.CustomFieldValue.ToString():"NULL") + ")");
 }