예제 #1
0
 private void AddClass()
 {
     try
     {
         //Silt.Client.Rules.OrgRules.StrLoginName;
         string    strGuid = this.rulesSys.ZAGetGuid();
         DataTable dt      = new DataTable();
         DataRow   dr      = null;
         dt       = dsProdurcer.Tables[0];
         dr       = dt.NewRow();
         dr["ID"] = 0;
         //
         dr["ItemID"] = "5555555555555";
         //
         dr["pv"] = 468464886;
         //
         dr["pageName"] = " 直通车";
         //
         dr["uv"] = 16545;
         //
         dr["uvRate"] = 0.23;
         //
         dr["pvRate"] = 0.25;
         //
         dr["getdatedey"] = "2017-4-8";
         //
         dr["shopID"] = "5656";
         dt.Rows.Add(dr);
     }
     catch (Exception ex)
     {
         MessageProcess.ZAMessageShowError(ex.Message.ToString());
     }
 }
예제 #2
0
        private void Addup()
        {
            try
            {
                Cursor = Cursors.WaitCursor;
                DataRow dr = this.dsProdurcer.Tables[0].Rows[0];


                this.Validate();
                this.srcFlowBindingSource.EndEdit();
                if (this.IsAddBool == true)
                {
                    if (this.baselistrules.ZAUpdate(this.dsProdurcer) > 0)
                    {
                        if (MessageProcess.ZAMessageDialogResult("Are you True Adding?"))
                        {
                            loadDataSet();
                        }
                        else
                        {
                            this.Close();
                        }
                    }
                }
                else
                {
                    if (this.baselistrules.ZAUpdate(this.dsProdurcer) > 0)
                    {
                        if (MessageProcess.ZAMessageDialogResult("Are you Treu update?"))
                        {
                            loadDataSet();
                        }
                        else
                        {
                            this.Close();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                // this.zaSaveLog(ex.Message.ToString(), ex.ToString()); MessageProcess.ZAMessageShowError(ex.Message.ToString());
                MessageProcess.ZAMessageShowError(ex.Message.ToString());
            }
            finally
            {
                Cursor = Cursors.Arrow;
            }
        }