Пример #1
0
        private void keywordsProcessedfalseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(Method_KeyWord_ProcessedToFalse), 1);

            frm.Text          = "Fix slug keyword";
            frm.txtQuery.Text = "{'processed':{$exists:false}}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #2
0
        private void productAddProcessedTermToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(Method_Product_ProcessedTerm), 1);

            frm.Text          = "Xử lý term";
            frm.txtQuery.Text = "{$or:[{'processed_term':{$exists:false}},{'processed_term':false}]}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #3
0
        private void btnFixImage_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_FixImage), 0);

            frm.Text          = "Fix ảnh";
            frm.txtQuery.Text = "{'processed':false}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #4
0
        private void fixSlugKeywordsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(KeyWord_FixSlug), 1);

            frm.Text          = "Fix slug keyword";
            frm.txtQuery.Text = "{'processed':false}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #5
0
        private void btnFixSlug_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_UpdateSlugData), 0);

            frm.Text          = "Sửa Slug";
            frm.txtQuery.Text = "{'processed':false}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #6
0
        private void btnReloadAllField_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_ReloadAllField), 0);

            frm.Text          = "Reload toàn bộ thuộc tính";
            frm.txtQuery.Text = "{'processed':false}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #7
0
        private void processDataForprocessedimagefalseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_AddFiedlProcessedImage), 0);

            frm.Text          = "Thêm thuộc tính processed_city";
            frm.txtQuery.Text = "{'processed_image':false}";
            frm.MdiParent     = this;
            frm.Show();
        }
Пример #8
0
        private void btnProcessToFalse_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_UpdateProcessedToFalse), 0);

            frm.Text = "Update Processed To False";
            frm.lblDescription.Text = "Chuyển trạng thái Processed => False. Chờ Reload lại các thuộc tính cơ bản (thuộc tính có thể tính nhanh)";
            frm.txtQuery.Text       = "{'processed':true}";
            frm.MdiParent           = this;
            frm.Show();
        }
Пример #9
0
        private void addNullToFieldProcessedimageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(ProcessData_AddFiedlProcessedImage), 0);

            frm.Text                = "Thêm thuộc tính processed_image";
            frm.txtQuery.Text       = "{'processed_image':{$exists:false}}";
            frm.txtFieldUpdate.Text = "{'processed_image':false}";
            frm.MdiParent           = this;
            frm.Show();
        }
Пример #10
0
        private void productAutoSetWaitQuickReloadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData();

            frm.txtFieldUpdate.Visible = false;
            frm.txtOptionFind.Visible  = false;
            frm.spinEdit1.Visible      = false;
            frm.txtQuery.Visible       = false;
            frm.MdiParent = this;
            frm.iSpecial  = 1;
            frm.Show();
        }
Пример #11
0
        private void productWaitReloadDataToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmReloadData frm = new FrmReloadData(new FrmReloadData.MethodRun(MethodData_Product_WaitQuickReload), 0);

            frm.Text = "Chờ Quick Reload";
            frm.lblDescription.Text = "Chờ Quick Reload. Chờ reload thông tin nhanh";
            frm.funcOption          = new FindOptions <BsonDocument>()
            {
                Limit = 500, Sort = "{updated_at:-1}"
            };
            frm.txtQuery.Text = "{$and:[{'status':1}, {$or:[{'wait_quick_reload':{$exists:false}},{'wait_quick_reload':false}]}]}";
            frm.MdiParent     = this;
            frm.Show();
        }