Пример #1
0
    public static int SendStationSMS(Sites Site, long SourceUserID, long AimUserID, short StationSMSType, string Content)  // UserID 付费用户, < 0 则系统付费
    {
        DAL.Tables.T_StationSMS T_StationSMS = new DAL.Tables.T_StationSMS(); 
        T_StationSMS.SiteID.Value = Site.ID;
        T_StationSMS.SourceID.Value = SourceUserID;
        T_StationSMS.AimID.Value = AimUserID;
        T_StationSMS.Type.Value = StationSMSType;
        T_StationSMS.Content.Value = Content;
        T_StationSMS.isRead.Value = false;
        T_StationSMS.Insert();

        return 0;
    }
Пример #2
0
    protected void g_ItemCheckedChanged(object sender, System.EventArgs e)
    {
        CheckBox cb = (CheckBox)sender;
        DataGridItem item = (DataGridItem)cb.Parent.Parent;
        long id = Shove._Convert.StrToLong(item.Cells[6].Text, 0);

        DAL.Tables.T_StationSMS T_StationSMS = new DAL.Tables.T_StationSMS();

        T_StationSMS.isShow.Value = cb.Checked;

        if (T_StationSMS.Update("ID = " + id.ToString()) < 0)
        {
            PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", "Admin_StationSMSList");

            return;
        }
    }